ObjectSchema
class ObjectSchema extends Schema
Methods
__construct(Type $schema, string $name = 'schema_definition', bool $strict = false)
Create a new output schema.
array
toSchema()
Get the array representation of the schema with additional properties disabled on all nested objects.
static array
disableAdditionalProperties(array $schema)
Recursively set "additionalProperties" to false on all object nodes.
string
schemaType()
Get the schema type.
Details
at line 15
__construct(Type $schema, string $name = 'schema_definition', bool $strict = false)
Create a new output schema.
in
Schema at line 25
string
name()
Get the name of the schema.
in
Schema at line 47
array
toArray()
Get the array representation of the schema.
at line 32
array
toSchema()
Get the array representation of the schema with additional properties disabled on all nested objects.
at line 44
static protected array
disableAdditionalProperties(array $schema)
Recursively set "additionalProperties" to false on all object nodes.
at line 74
string
schemaType()
Get the schema type.