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

parameter from the components/parameters section makes openapi-python-client crash #1194

Open
SimonDeBroyer opened this issue Jan 12, 2025 · 0 comments

Comments

@SimonDeBroyer
Copy link

Describe the bug
While generating a client for my openapi.json file, the script crashes with internal errors.

The problem seems to be related to a parameter defined in my component/parameters section. When i comment out this part of my openapi spec. The client can be generated without errors.

"components": {
    "parameters": {
        "macAddress": {
            "name": "macAddress",
            "in": "path",
            "required": true,
            "schema": {
                "$ref": "#/components/schemas/MacAddress"
            },
            "description": "The MAC address of the dongle.\n"
        }
    }
}

OpenAPI Spec File.

openapi.json

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.1 LTS
  • Python Version: 3.12.3
  • openapi-python-client version: 0.22.0

Additional context

The full output of the crash output.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant