Open justinc13 opened 4 years ago
I have had the same issue. What throws me off as well is that it shows it as "oneOf", but really there is no other option?
https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/
Would I be able to get an update on this issue?
I am also seeing this with classes that implement List<T>
. Changing the type directly to List<T>
or IEnumerable<T>
solves the problem.
Set AllowReferencesWithProperties to false See https://github.com/RicoSuter/NSwag/issues/2986#issuecomment-700624325
Hello,
Using NSwag.AspNetCore 13.3.0, given an API controller that takes in the following model:
the following OpenAPI schema is generated:
Unfortunately, the SwaggerUI doesn't correctly render the 'Car' property in the example:
It exists within the schema definition in the SwaggerUI though:
Is this correct behaviour? Is there maybe a configuration property for this?