Schema constructor

Schema({
  1. Type type = Type.$default,
  2. String format = '',
  3. String title = '',
  4. String description = '',
  5. bool nullable = false,
  6. Value? default$,
  7. Schema? items,
  8. int minItems = 0,
  9. int maxItems = 0,
  10. List<String> enum$ = const [],
  11. Map<String, Schema> properties = const {},
  12. List<String> propertyOrdering = const [],
  13. List<String> required = const [],
  14. int minProperties = 0,
  15. int maxProperties = 0,
  16. double minimum = 0,
  17. double maximum = 0,
  18. int minLength = 0,
  19. int maxLength = 0,
  20. String pattern = '',
  21. Value? example,
  22. List<Schema> anyOf = const [],
  23. Value? additionalProperties,
  24. String ref = '',
  25. 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);