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

Fixes inheritance evaluation when a referenced schema in an allOf #5886

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

andrueastman
Copy link
Member

Closes #5701

In the scenario for generating the models for inheritance, it won't make sense for a schema to inherit from a primitive.

This changes in this PR ensure that the meaningful schemas used by the IsInherited are of the object type (if specified) so that generation can be done using models that are part of the code DOM (given that primitives are externally defined, "inheriting" from primitives would also cause failures at later generation stages in the builder)

Using the sample in the issue at #5701, the generated model(Order) should have the TraderId property correctly generated as a string as well.

@andrueastman andrueastman marked this pull request as ready for review December 9, 2024 09:40
@andrueastman andrueastman requested a review from a team as a code owner December 9, 2024 09:40
@andrueastman andrueastman merged commit e8fb806 into main Dec 9, 2024
215 checks passed
@andrueastman andrueastman deleted the andrueastman/fixMeaninigFulInheritance branch December 9, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✔️
Development

Successfully merging this pull request may close these issues.

Error: The type does not contain any information
2 participants