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
Touching nullability is very dangerous as it could break other things.. can you create a PR with a unit test reproducing this here (with a JSOn Schema)?
Is it possible to also GenerateOptionalPropertiesAsNullable when required is false? I am using an Open API schema where required is false but they haven't specified if the schema.nullable is true
Related to RicoSuter/NSwag#2313
Optional Scalar properties do not produce nullable C# built-in value types when the types are defined in components/schema.
Generated C# class:
When GenerateOptionalPropertiesAsNullable is true, OptionalSchemaNumber is expected to be nullable (
int?
) as per OptionalInlineNumber.The text was updated successfully, but these errors were encountered: