-
-
Notifications
You must be signed in to change notification settings - Fork 226
Support allOf in response schemas #98
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
Will add support for oneOf in 0.5.4, allOf is definitely trickier and will happen in a future version. |
FYI, we've implemented allOf support in our fork here: I will try to open a PR if I can find some free time 😅 , otherwise feel free to pull in whatever you find useful! |
Collapses the child elements into one, without class heirarchy, mixins, etc.
Collapses the child elements into one, without class heirarchy, mixins, etc.
With the latest version, the default value for enum fields is not used. Also I see some strange Enum creation like the following:
|
* Add allOf support for model definitions (#98) Collapses the child elements into one, without class heirarchy, mixins, etc. * refactor: allOf support to happen in build_model_property * refactor: Clean up ModelProperty code * refactor: More test cleanup for ModelProperty * fix: Handle duplicate and conflicting properties in allOf * ci: Improve test coverage * refactor: A bit of cleanup for clarity * Merge main into benching-allof-support Co-authored-by: Packy Gallagher <packyg@benchling.com>
This should be solved in 0.9.0 (releasing soon) |
Is your feature request related to a problem? Please describe.
I attempted to generate a client from one of my OpenAPI specs, and
allOf
andkeywords are not yet supportedoneOf
Describe the solution you'd like
oneOf
should create a union type of the objects.allOf
should create a type with all of the objects subfields.Additional context
FYI, we've implemented allOf support in our fork here:
benchling/openapi-python-client@2670d11
benchling/openapi-python-client@9f5b95a (bugfix)
I will try to open a PR if I can find some free time 😅 , otherwise feel free to pull in whatever you find useful!
The text was updated successfully, but these errors were encountered: