dogs_schema library

Extensions

SchemaTypeExtension on SchemaType
Extension methods for SchemaType to provide a fluent API for schema definitions.

Functions

any() SchemaType
Creates a schema type representing any value.
array(SchemaType itemType) SchemaType
Creates a schema type representing an array of the given item type.
boolean() SchemaType
Creates a schema type representing a boolean.
enumeration(List<String> values) SchemaType
Creates a schema type representing an enumeration of the given string values.
integer() SchemaType
Creates a schema type representing an integer.
map(SchemaType itemType) SchemaType
Creates a schema type representing a string-keyed map with values of the given item type.
number() SchemaType
Creates a schema type representing a number.
object(Map<String, SchemaType> properties) SchemaType
Creates a schema type representing an object with the given properties.
parseSchema(String json) SchemaType
Parses a JSON string into a SchemaType.
ref(String serialName) SchemaType
Creates a schema type representing a reference to another schema by its serial name.
string() SchemaType
Creates a schema type representing a string.