Created
March 30, 2016 07:18
-
-
Save grebaldi/d829be1ebc5ee9d8d3735950f990b1be to your computer and use it in GitHub Desktop.
YAML Schema validation for Flow\Neos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# NodeTypes | |
# | |
'*': | |
reference: 'nodeTypeName' | |
type: shape | |
options: | |
shape: | |
'abstract': { type: bool } | |
'final': { type: bool } | |
'superTypes': | |
type: object | |
options: | |
of: { type: bool } | |
keys: | |
validate: | |
validator: 'MatchReference' | |
options: { reference: 'nodeTypeName', excludeParents: true } | |
'childNodes': | |
type: object | |
options: | |
of: | |
type: shape | |
options: | |
shape: | |
'type': | |
type: string | |
validate: | |
validator: 'MatchReference' | |
options: { reference: 'nodeTypeName', excludeParents: true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment