-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add concrete schema for discriminated types into 'oneOf' for base type #3293
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
base: master
Are you sure you want to change the base?
add concrete schema for discriminated types into 'oneOf' for base type #3293
Conversation
The tests seem quite broken - it looks like they've got into a cycle somewhere. |
add concrete schema for discriminated types into 'oneOf' for base type
b6ea2f0
to
2a6af62
Compare
StackOverflow exception is caused somewhere inside NJsonSchema.JsonSchema, here's truncated exception
I assume it crashes while trying to generate C# client via NSwag, in the NSwagClientExample.csproj
however, I am not able to trace where to find source code for @martincostello I appreciate any tips if you have any |
Looks like its gotten in a self-referential loop (e.g. type |
fix for #3166
Details on the issue fix or feature implementation
I am not happy how it looks like in Swagger UI, I open for any suggestions
here's how looks Animal class with subtypes. Having refs to himself can easily lead to such unpleasant view

BaseType with SubSubType link
