ObjectSchema
class ObjectSchema extends SubSchema
Implementierung des ObjectType der Json-Schema Spezification.
Constants
MIMETYPE |
MIMETYPE |
ID_KEY |
ID |
SCHEMA_KEY |
Schema |
REFERENCE_KEY |
Reference |
COMMENT_KEY |
Kommentar |
DEFINITIONS_KEY |
Kommentar |
TYPE_KEY |
|
TITLE_KEY |
|
DESCRIPTION_KEY |
|
DEFAULT_KEY |
|
ENUM_KEY |
|
CONST_KEY |
|
READ_ONLY_KEY |
|
WRITE_ONLY_KEY |
|
EXAMPLES_KEY |
|
IF_KEY |
|
THEN_KEY |
|
ELSE_KEY |
|
ALL_OF_KEY |
|
ANY_OF_KEY |
|
ONE_OF_KEY |
|
NOT_KEY |
|
TYPE |
Typ |
ADDITIONAL_PROPERTIES_KEY |
Eigenschaften |
REQUIRED_PROPERTIES_KEY |
Notwendige Eigenschaften |
MAX_PROPERTIES_KEY |
Maximlae Anzahl der Eigenschaften |
MIN_PROPERTIES_KEY |
Mindestanzahl der Eigenschaften |
DEPENDENCIES_KEY |
Abhängigkeiten |
PATTERN_PROPERTIES_KEY |
Validierung der Eigenschaften mit einem Regex |
PROPERTIES_KEY |
Eigenschaften |
Properties
protected URI | $shemaURI | from Schema | |
protected URI | $id | from Schema | |
protected Map | $definitions | from Schema | |
protected Type | $instance | from Schema | |
protected string | $type | from SubSchema | |
protected Schema | $root | from SubSchema |
Methods
parseTypeSchema(array $definition)
No description
Details
in Schema at line 106
protected string
getIDFromDefinition(string $key, array $definition)
in Schema at line 159
protected $this
parse(array $definition)
in SubSchema at line 172
static Schema
fromDefinition(array $definition, Schema $root = null)
Instanz aus einer Definition erstellen.
Wichtig: $root darf nicht null sein, sondern muss ein Verweis auf das Hauptschema sein.