-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Use allOf for all schemas in inheritance #733
Conversation
Dictionary inheritance handling (Foo = container class)
Schema (OpenAPI 3 style)
Rules:
|
Question: In the sample above, how can i decide which one of the schemes in allOf is the base schema (i.e. inherited) when both are inline (no schema is referenced)? When one schema is referenced and one is inline, then the referenced one is the base schema... Also see my dictionary test in the previous comment... @darrelmiller Is the generated schema above correct for the given C# code? Can you answer the question in this comment (is there even an answer)? |
For reference, there is also oneof inheritance: |
As far as I can see the allOf Part looks correct. I haven't used the oneOf property as of yet, but in this case it seems unnecessary to me. |
This reverts commit 74aa14f.
Had to revert, because there are still some issues: New PR: #783 |
Closes #732
Tasks: