class Schema extends Alvine

Schema ist eine Implementierung der Json-Schema Spezifikation

Constants

MIMETYPE

MIMETYPE

ID_KEY

ID

SCHEMA_KEY

Schema

REFERENCE_KEY

Reference

COMMENT_KEY

Kommentar

DEFINITIONS_KEY

Kommentar

Properties

protected URI $shemaURI
protected URI $id
protected Map $definitions
protected Type $instance

Methods

__construct()

No description

string
getIDFromDefinition(string $key, array $definition)

No description

parseSchema(array $definition)

No description

parseDefinitions(array $definition)

No description

$this
parse(array $definition)

No description

static Schema
fromDefinition(array $definition)

No description

static Schema
fromJson(string $json)

No description

Details

at line 92
protected __construct()

at line 106
protected string getIDFromDefinition(string $key, array $definition)

Parameters

string $key
array $definition

Return Value

string

at line 121
protected Schema parseSchema(array $definition)

Parameters

array $definition

Return Value

Schema

at line 134
protected Schema parseDefinitions(array $definition)

Parameters

array $definition

Return Value

Schema

Exceptions

SchemaException

at line 159
protected $this parse(array $definition)

Parameters

array $definition

Return Value

$this

at line 188
static Schema fromDefinition(array $definition)

Parameters

array $definition

Return Value

Schema

at line 199
static Schema fromJson(string $json)

Parameters

string $json

Return Value

Schema

Exceptions

SchemaException