For non-nullable reference types, a resource attribute should be included in the OpenAPI required property if model state validation is enabled, and should be excluded otherwise.
The following table displays a comprehensive overview of the behavior of required, nullable in an OpenAPI schema, depending on the property type, usage of [Required], configuration of NRT, and configuration of model state validation.
