-
-
Notifications
You must be signed in to change notification settings - Fork 229
Cannot take allOf a non-object #674
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
A schema is only considered an object if it has |
Side note, that I think there was an older version of the spec (maybe Swagger?) which had |
Thanks for the quick reply!
That makes sense to me. Would you like me to create a PR for that? If so, can you point me to the relevant code section? And also thanks for the pointer on |
Sure thing, I think adding an The easiest way to test will be via an end-to-end test, which should be described in CONTRIBUTING.md (let me know if it's not clear so I can fix it!) |
Thanks for all your pointers; adding When I do the same to RunParameters, I get this:
So I updated:
Wondering if we should also default to |
Also, when I tried adding an or statement:
I get a cascading error effect:
|
Interestingly, all I had to do was fix one, and then the cascading warnings all disappeared. Specifically:
I added:
Should array default to type string if it's not specified? |
…ect [#691, #674]. Thanks @ahuang11! Co-authored-by: Dylan Anthony <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Thanks for creating this; I love how explicit it is on errors and warnings!
I am currently encountering this warning:
Raised from here. However, I don't fully understand this error, specifically what is a
non-object
.Here is the contents that it warns on:
I double checked to make sure these reference schemas exist:
Any thoughts and suggestions appreciated!
To Reproduce
Steps to reproduce the behavior:
wget https://docs.databricks.com/_static/api-refs/jobs-2.1-aws.yaml
openapi-python-client generate --path jobs-2.1-aws.yaml
which results in multiple errors similar to:required
frombool
tolist
, e.g.to
openapi-python-client generate --path jobs-2.1-aws.yaml
Expected behavior
A clear and concise description of what you expected to happen.
No warnings; succesful generation. I am happy to help contribute a PR if this is indeed a bug and if we can figure out the issue.
OpenAPI Spec File
A link to your openapi.json which produces this issue.
https://docs.databricks.com/_static/api-refs/jobs-2.1-aws.yaml (needs manual modification to the yaml to make it more compliant)
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: