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