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
Template in ASP.NET Core results in wrong swagger #1435
Comments
Is this the same issue? RicoSuter/NJsonSchema#732 |
I think they are the same issue, but with regards to generics rather than inheritance. Also the fix @fizmike suggested in his second post (moving all the "properties" into the "allOf" array) is exactly what gets it to work with swagger codegen and the swagger-parser I didn't realize this was a problem with swagger2 standard compliancy |
I've never seen a statement that having the properties in the root and allOf is not allowed... but it seems that some generators cannot handle that... |
Actually the parser in https://github.com/swagger-api/swagger-parser creates a model which doesn't have the SingleResponse in the PagedResponseOfSingleResponse, which is why I asked there first |
Created a PR with current attempt to this: RicoSuter/NJsonSchema#733 |
Fixed in v11.20.0 |
This code, in different files
results in the following swagger
The part of PagedResponseOfSingleResponse is wrong and results in an empty Model if parsed by the swagger parse (apart from objects from PagedResultBase) and should be:
which results in a correct model
The text was updated successfully, but these errors were encountered: