Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect swagger.yaml #404

Open
agoston opened this issue Nov 18, 2024 · 0 comments · May be fixed by #405
Open

incorrect swagger.yaml #404

agoston opened this issue Nov 18, 2024 · 0 comments · May be fixed by #405
Labels

Comments

@agoston
Copy link

agoston commented Nov 18, 2024

Description

Reproduce

Call endpoint /api/kernelspecs.

Expected behavior

Response JSON adheres to swagger.yaml response definion.

Context

Jupyter-kernel-gateway 2.5.2, when calling the /api/kernelspecs endpoint, returned this:

$ curl http://X.X.X.X:8888/api/kernelspecs | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   410  100   410    0     0   400k      0 --:--:-- --:--:-- --:--:--  400k
{
    "default": "python3",
    "kernelspecs": {
        "python3": {
            "name": "python3",
            "spec": {
                "argv": [
                    "python",
                    "-m",
                    "ipykernel_launcher",
                    "-f",
                    "{connection_file}"
                ],
                "env": {},
                "display_name": "Python 3 (ipykernel)",
                "language": "python",
                "interrupt_mode": "signal",
                "metadata": {
                    "debugger": true
                }
            },
            "resources": {
                "logo-32x32": "/kernelspecs/python3/logo-32x32.png",
                "logo-64x64": "/kernelspecs/python3/logo-64x64.png"
            }
        }
    }
}

However, in the provided swagger.yaml, under definitions/KernelSpec, there is a KernelSpecFile property defined instead of the returned spec.

@agoston agoston added the bug label Nov 18, 2024
@agoston agoston linked a pull request Nov 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant