Schema constructor
Schema({
- Type type = Type.$default,
- String format = '',
- String title = '',
- String description = '',
- bool nullable = false,
- Value? default$,
- Schema? items,
- int minItems = 0,
- int maxItems = 0,
- List<
String> enum$ = const [], - Map<
String, Schema> properties = const {}, - List<
String> propertyOrdering = const [], - List<
String> required = const [], - int minProperties = 0,
- int maxProperties = 0,
- double minimum = 0,
- double maximum = 0,
- int minLength = 0,
- int maxLength = 0,
- String pattern = '',
- Value? example,
- List<
Schema> anyOf = const [], - Value? additionalProperties,
- String ref = '',
- Map<
String, Schema> defs = const {},
Implementation
Schema({
this.type = Type.$default,
this.format = '',
this.title = '',
this.description = '',
this.nullable = false,
this.default$,
this.items,
this.minItems = 0,
this.maxItems = 0,
this.enum$ = const [],
this.properties = const {},
this.propertyOrdering = const [],
this.required = const [],
this.minProperties = 0,
this.maxProperties = 0,
this.minimum = 0,
this.maximum = 0,
this.minLength = 0,
this.maxLength = 0,
this.pattern = '',
this.example,
this.anyOf = const [],
this.additionalProperties,
this.ref = '',
this.defs = const {},
}) : super(fullyQualifiedName);