-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
Support oneOf inheritance for JsonSchema Generation #832 #839
Conversation
Refs:
|
7e51dda
to
e870190
Compare
Any progress on this? |
This one is about generating C# OneOf from JsonSchema OneOf. |
@RicoSuter Is any progress for it? |
Hi. As a work-around I was able to use an operation processor. See https://gist.github.com/icnocop/10de946939e5046190219cc8817356c4 It works for my case, but may not be the best solution, and may not support all scenarios. For example, it may have been better to use a schema processor instead. Usage, in Startup.cs, in ConfigureServices:
My types are defined and decorated similar to the following:
I only tested with types, and generic types with one generic type parameter. |
Very old PR, closing now. Please open another PR against recent source if this is still an issue. |
Hello,
Just made some modifications to generate a jsonschema with oneOf inheritance. I didn't do anything for CodeGeneration as don't need it.
For schema generation do you think it is the way to go? And what did you think about when you mention inheritanceMode ? (which kind of mode would you propose?)