JsonSchemaTypeFactory
class JsonSchemaTypeFactory extends JsonSchema implements JsonSchema (View source)
Methods
Build a type from a raw array of the Laravel-supported JSON Schema subset.
Dynamically pass static methods to the schema instance.
Create a new object schema instance.
Create a new string property instance.
Create a new integer property instance.
Create a new number property instance.
Create a new boolean property instance.
Details
static Type
fromArray(array $schema)
Build a type from a raw array of the Laravel-supported JSON Schema subset.
static Type
__callStatic(string $name, mixed $arguments)
Dynamically pass static methods to the schema instance.
ObjectType
object(Closure|array $properties = [])
Create a new object schema instance.
ArrayType
array()
Create a new array property instance.
StringType
string()
Create a new string property instance.
IntegerType
integer()
Create a new integer property instance.
NumberType
number()
Create a new number property instance.
BooleanType
boolean()
Create a new boolean property instance.
UnionType
union(array $types)
Create a new multi-type union instance.
AnyOfType
anyOf(Closure|array $schemas)
Create a new anyOf schema instance.