Home NullableAttribute Class
NullableAttribute Class
Cancel

NullableAttribute Class

Namespace: Json.Schema.Generation

Inheritance: NullableAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object

Implemented interfaces:

  • IAttributeHandler

Overrides the Json.Schema.Generation.SchemaGeneratorConfiguration.Nullability option and either adds or removes null in the type keyword.

Properties

NameTypeSummary
ConditionGroupobjectIdentifies the condition group under which this attribute applies.
IsNullableboolGets whether null should be included in the type keyword.
TypeIdobject 

Constructors

NullableAttribute(bool isNullable)

Creates a new Json.Schema.Generation.NullableAttribute instance.

Declaration

1
public NullableAttribute(bool isNullable)
ParameterTypeDescription
isNullableboolWhether null should be included in the type keyword.
Contents