JsonSchema
Data class representing draft 3 of the JSON schema. Note that this data class is not responsible for JSON schema validation.
As per the IETF proposal, all properties are marked as optional.
Constructors
Properties
This provides a definition for additional items in an array instance when tuple definitions of the items are provided.
Retrieves the additional items as a boolean.
This attribute defines a schema for all properties that are not explicitly defined in an object-type definition.
Retrieves the additional properties as a boolean.
This attribute defines the default value of the instance when the instance is undefined.
This attribute is an object that defines the requirements of a property on an instance object.
Retrieves the dependencies as a string.
This attribute is a string that provides a full description of the instance property.
This attribute takes the same values as the type attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid.
This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.)
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute.
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute.
The value of this property must be another schema which will provide a base schema which the current schema will inherit from.
This property defines the type of data, content type, or microformat to be expected in the instance property values.
This attribute defines the allowed items in an instance array, and must be a schema or an array of schemas.
This attribute defines a URI of a schema that contains the full representation of this schema.
This attribute defines a URI of a JSON Schema that is the schema of the current schema.
This attribute is an object that defines the schema for a set of property names of an object instance.
This attribute is an object with property definitions that define the valid values of instance object property values.
This attribute defines what the primitive type or the schema of the instance must be in order to validate. This attribute can take one of two forms:
This attribute indicates that all items in an array instance MUST be unique (contains no two identical values).
Functions
Retrieves the additional items as an object.
Retrieves the additional properties as an object.
Retrieves the dependencies as a list of strings. Warning: This function does not check if the value is actually a list.
Retrieves the dependencies as a JsonSchema. Warning: This function does not check if the value is actually an object.