interface JsonSchema

Methods

object(Closure|array $properties = [])

Create a new object schema instance.

array()

Create a new array property instance.

string()

Create a new string property instance.

integer()

Create a new integer property instance.

number()

Create a new number property instance.

boolean()

Create a new boolean property instance.

union(array $types)

Create a new multi-type union instance.

anyOf(Closure|array $schemas)

Create a new anyOf schema instance.

Details

at line 25
ObjectType object(Closure|array $properties = [])

Create a new object schema instance.

Parameters

Closure|array $properties

Return Value

ObjectType

at line 30
ArrayType array()

Create a new array property instance.

Return Value

ArrayType

at line 35
StringType string()

Create a new string property instance.

Return Value

StringType

at line 40
IntegerType integer()

Create a new integer property instance.

Return Value

IntegerType

at line 45
NumberType number()

Create a new number property instance.

Return Value

NumberType

at line 50
BooleanType boolean()

Create a new boolean property instance.

Return Value

BooleanType

at line 57
UnionType union(array $types)

Create a new multi-type union instance.

Parameters

array $types

Return Value

UnionType

at line 64
AnyOfType anyOf(Closure|array $schemas)

Create a new anyOf schema instance.

Parameters

Closure|array $schemas

Return Value

AnyOfType