Open Debbus72 opened 3 years ago
There is no "requestBodies" property in the components class: https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Core/OpenApiComponents.cs
So it's surely not deserialized correctly and also not resolved... should this work according to the OAI spec?
We are generating CSharp-clients based on our swagger-files. We found that if we inline the definition on a "custom" media-type like this:
we got a valid code-generation in the CSharp-generator with the correct media-type/content-type. But when we substitute the object with a $ref like this:
the client was generated with the standard
application/json
.Is the second example not correct?