You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this while digging into a different problem with enum properties. It may have something to do with how enum nullability is defined in the OpenAPI spec. In languages like C#, nullability is a property of the reference. In OpenAPI, nullability of an enum is a matter of null being a member of the enum. You can use an ISchemaFilter to set Nullable and add OpenApiNull to the Enum property of enum schemas. I tried this and it didn't solve my other problem, but I haven't tried generating an NSwag client against the resulting schema.
To make issue tracking a bit less overwhelming for the new maintainers (see #2778), I've created a new tracking issue to roll-up various nullability issues here: #2793.
We'll refer back to this issue from there and include it as part of resolving that issue, but I'm going to close this one to help prune the backlog.
The following class:
populates the following schema:
Please note that the
status
property is not nullable while it should be:Related issue: RicoSuter/NSwag#4397
The text was updated successfully, but these errors were encountered: