Skip to content

incorrect swagger.yaml #404

Open
@agoston

Description

@agoston

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions