Home GenerateJsonSchemaAttribute Class
GenerateJsonSchemaAttribute Class
Cancel

GenerateJsonSchemaAttribute Class

Namespace: Json.Schema.Generation.Serialization

Inheritance: GenerateJsonSchemaAttribute 🡒 Attribute 🡒 object

Apply to a type to generate a schema for validation during deserialization by Json.Schema.Generation.Serialization.GenerativeValidatingJsonConverter.

Remarks

When applied, source generation will create a static property containing a pre-built Json.Schema.JsonSchema for the decorated type at compile time.

Properties

NameTypeSummary
PropertyNamingNamingConventionGets or sets the naming convention to use for property names in the generated schema.
PropertyOrderPropertyOrderGets or sets the order in which properties will be listed in the schema.
StrictConditionalsboolGets or sets whether properties affected by conditionals are defined globally or only within their respective then subschemas.
TypeIdobject 
Contents