class SchemaValidator

Methods

__construct(Application $app)

Create the schema validator.

void
validate(array $schema)

Validate a schema, logging invalid definitions in production.

bool
containsEmptyValue(array $values)

Determine whether any nested value is null or an empty string.

Details

at line 16
__construct(Application $app)

Create the schema validator.

Parameters

Application $app

at line 25
void validate(array $schema)

Validate a schema, logging invalid definitions in production.

Parameters

array $schema

Return Value

void

at line 54
protected bool containsEmptyValue(array $values)

Determine whether any nested value is null or an empty string.

Parameters

array $values

Return Value

bool