-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Generation of C# Code OneOf not working #673
Comments
oneOf inheritance is currently not supported in the code generators. It's an outstanding issue and not so simple to implement: |
thanks for the quick feedback. |
oneOf inheritance is now implemented and handled by default, please retest with latest version. |
This still doesn't seem to work for one of. The first schema from the one of list is the one that is chosen. |
I think my previous statement was wrong - just allOf inheritance has been improved. OneOf inheritance is another story, see PR #839 and associated issues |
bummer. For the code gen piece of one of would it be sufficient to just squash all the one of schemas into one object? I can't even think of how else to do it. |
First off this is a great library! Well done.
I am seeing an issue with the generation of OneOf code. The generated C# only shows the first choice.
The relevant part of the JSON is this part, where a one of two types is specified:
The generated C# code looks like this, namely the second choice has disappeared.
Am I doing something incorrectly?
Thanks
Sean
The text was updated successfully, but these errors were encountered: