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
When creating a schema with Required.Default or Required.AllowNull, properties in the schema have null as an allowed type. When nullable reference types are enabled, I expect properties which cannot be null to not allow null in the schema:
In this case, I expect the schema type for CannotBeNull to be "string", and CanBeNull to be [ "string, "null" ].
Optionally, the same can be done for required properties when using Required.Default or Required.DisallowNull, where properties that cannot be null are automatically added to the required properties list.
The text was updated successfully, but these errors were encountered:
When creating a schema with
Required.Default
orRequired.AllowNull
, properties in the schema havenull
as an allowed type. When nullable reference types are enabled, I expect properties which cannot be null to not allow null in the schema:In this case, I expect the schema type for
CannotBeNull
to be"string"
, andCanBeNull
to be[ "string, "null" ]
.Optionally, the same can be done for required properties when using
Required.Default
orRequired.DisallowNull
, where properties that cannot be null are automatically added to the required properties list.The text was updated successfully, but these errors were encountered: