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

Generate models for composite schemas #3

Open
rafalkrupinski opened this issue Dec 21, 2022 · 0 comments
Open

Generate models for composite schemas #3

rafalkrupinski opened this issue Dec 21, 2022 · 0 comments

Comments

@rafalkrupinski
Copy link
Contributor

rafalkrupinski commented Dec 21, 2022

Composite schemas are those using oneOf, anyOf, allOf and not.

  • each schema will be represented as a single class (no inheritance)
  • only schemas that are either defined inline or referenced under the paths, responses or x-apiResponses elements will be source for model classes
  • schemas will be processed recursively
  • all properties from all schemas will be present, except from not schema, which properties should be excluded
  • each fields attributes (type, required, nullable) will reflect all the schemas, using the least restrictive one.
  • processing contradictory schemas will fail
@rafalkrupinski rafalkrupinski transferred this issue from python-lapidary/lapidary Jan 11, 2024
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