Schema structure

Internal structure of a schema

Opis JSON Schema uses an internal representation of a schema document, which must implement \Opis\JsonSchema\ISchema interface.

Opis JSON Schema provides a class that implements the ISchema interface in class \Opis\JsonSchema\Schema.

The following methods are implemented.


Used to get the document id.

Returns string


Used to get the document draft.

Returns string


Used to get a subschema by id. If null is used, returns the root schema.


  • [string $id = null] - subschema id

Returns mixed

On this page