JsonSchemaTypeFactory
class JsonSchemaTypeFactory extends JsonSchema implements JsonSchema
Methods
Build a type from a raw array of the Hypervel-supported JSON Schema subset.
Dynamically pass static methods to the schema instance.
Create a new object schema instance.
Create a new integer property instance.
Create a new number property instance.
Create a new string property instance.
Create a new boolean property instance.
Details
in
JsonSchema at line 38
static Type
fromArray(array $schema)
Build a type from a raw array of the Hypervel-supported JSON Schema subset.
in
JsonSchema at line 46
static Type
__callStatic(string $name, array $arguments)
Dynamically pass static methods to the schema instance.
at line 18
ObjectType
object(Type> $properties = [])
Create a new object schema instance.
at line 82
AnyOfType
anyOf(Type> $schemas)
Create a new anyOf schema instance.
at line 46
IntegerType
integer()
Create a new integer property instance.
at line 54
NumberType
number()
Create a new number property instance.
at line 38
StringType
string()
Create a new string property instance.
at line 62
BooleanType
boolean()
Create a new boolean property instance.
at line 30
ArrayType
array()
Create a new array property instance.
at line 72
UnionType
union(string> $types)
Create a new multi-type union instance.