-
-
Notifications
You must be signed in to change notification settings - Fork 229
Unable to parse schema Errors #648
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
Comments
I think all references of the form |
I do confirm that, refs are supported. Ex: from https://codebeamer.com/cb/api-docs/v3.json "requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExportProject"
}
}
}
}, The above is fully supported and generated python code is working. |
I'm running into this for schema refs using this spec: https://github.com/Southclaws/storyden/blob/main/api/openapi.yaml It seems even schema refs don't work for me currently on 0.21.2 perhaps heavily nested refs are the issue? |
There are some known issues with One that I suspect is applicable in your case is #1091, because Another one that I think might affect your spec is #1090, because you're defining |
Ah that makes sense, I actually didn't know that prop was being overridden either so I'll take a look at that (it may be legal but it doesn't feel like a good thing!) the main use-case for my usage of allOf with a single item is generating invariant types with unique names in Go, but I can probably remove that for this particular case anyway. Thanks for looking into it! |
@Southclaws Btw, it looks like the latest release already has the fix for #1091 - and the other bug has a PR up that might get merged soonish. |
Still running into this issue, where the request body is not able to handle the |
Describe the bug
I'm attempting to convert a rather large open api schema to Pyhton bindings and am running across warnings that are dropping endpoints on the floor. I believe there is a couple of issues.
To Reproduce
Steps to reproduce the behavior:
openapi-python-client generate --path openapi/spec.json
openapi-python-client generate --path openapi/spec.yaml
Expected behavior
A full python client should be generated without warnings.
OpenAPI Spec File
Standby. Making sure I have approval to share this schema since its coming from a 3rd party vendor.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: