Method Standards.JSON5.Validator()->create()


Method create

Standards.JSON5.Validator Standards.JSON5.Validator(mixed _schema)

Description

Create a JSON5 validator for some JSON5 schema.

Parameter _schema

The JSON5 schema to use in validate(). This must be a valid JSON5 object.

Throws

Throws an error if the schema is invalid.