-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[bug] NullPointerException when I attempt to generate a Python API client #20348
Comments
https://gist.github.com/joseph-grosso/436781d1e73d66f77bb6c0a2933885af returns 404 can you please reshare the spec? |
I am getting similar behaviour when trying to generate a python client from this Spec file Tail of the console output as it is very long:
|
Bug Report Checklist
I don't want to share the full spec as this is used internally and is quite long/would take a while to anonymize.
I validated the swagger file with both the swagger online editor and the
openapi-generator
validator:openapi-generator validate -i redocly.swagger.yaml
Description
I'm getting a NullPointerException when I attempt to generate a Python API client:
I can generate a client with other paid tools (speakeasy), but I'd prefer to use the free and open source tooling available here.
openapi-generator version
7.11.0-SNAPSHOT
OpenAPI declaration file content or url
https://gist.github.com/joseph-grosso/436781d1e73d66f77bb6c0a2933885af
Generation Details
Steps:
openapi-generator generate -i redocly.swagger.yaml -g python -o ../python-api
Suggest a fix
The error returned:
Hopefully if the null was handled differently in this step then this could pass.
The full error output
I believe that the issue is related to one of the warnings below:
null
containing multiple types (not model) is not supported at the moment."generateAliasAsModel
is set to false (default)The text was updated successfully, but these errors were encountered: