mirror of https://github.com/kdl-org/kdl.git
more work, add descriptions
This commit is contained in:
parent
1416845fa6
commit
0a804976a8
|
|
@ -4,33 +4,59 @@
|
||||||
|
|
||||||
```kdl
|
```kdl
|
||||||
document description="KDL Schema KDL schema in KDL" schema-url="https://github.com/zkat/kdl" {
|
document description="KDL Schema KDL schema in KDL" schema-url="https://github.com/zkat/kdl" {
|
||||||
node "document" {
|
node "document" min=1 max=1 {
|
||||||
prop "schema-url" type="url"
|
prop "schema-url" type="url" \
|
||||||
prop "description" type="string"
|
description="URL where you can find this schema. Informational only."
|
||||||
|
prop "description" type="string" \
|
||||||
|
description="General purpose and description for this document schema."
|
||||||
children id="node-children" {
|
children id="node-children" {
|
||||||
node "node" id="node" {
|
node "node" id="node" {
|
||||||
value description="name of the node" type="string"
|
value min=1 max=1 type="string" \
|
||||||
prop "description" type="string"
|
description="The name of the node."
|
||||||
prop "id" type="string"
|
prop "description" type="string" \
|
||||||
prop "ref" type="string"
|
description="A description of this node's purpose."
|
||||||
|
prop "id" type="string" \
|
||||||
|
description="globally-unique ID of this node."
|
||||||
|
prop "ref" type="string" \
|
||||||
|
description="globally unique reference to this node."
|
||||||
|
prop "min" type="number" \
|
||||||
|
description="minimum number of instances of this node in its parent's children."
|
||||||
|
prop "max" type="number" \
|
||||||
|
description="maximum number of instances of this node in its parent's children."
|
||||||
children {
|
children {
|
||||||
node "prop" description="node property key/value pair" {
|
node "prop" description="A node property key/value pair." {
|
||||||
prop "id" type="string"
|
value type="string" min=1 max=1 \
|
||||||
prop "ref" type="string"
|
description="The property key."
|
||||||
value description="property key" type="string"
|
prop "type" type="string" \
|
||||||
prop "type" type="string"
|
description="The type for this prop's value."
|
||||||
prop "description" type="string"
|
prop "id" type="string" \
|
||||||
|
description="A globally-unique ID of this property."
|
||||||
|
prop "ref" type="string" \
|
||||||
|
description="A globally unique reference to another property node."
|
||||||
|
prop "description" type="string" \
|
||||||
|
description="A description of this property's purpose."
|
||||||
}
|
}
|
||||||
node "value" description="one or more direct node values" {
|
node "value" description="one or more direct node values" {
|
||||||
prop "id" type="string"
|
prop "id" type="string" \
|
||||||
prop "ref" type="string"
|
description="A globally-unique ID of this value."
|
||||||
prop "description" type="string"
|
prop "ref" type="string" \
|
||||||
prop "type" type="string"
|
description="A globally unique reference to another value node."
|
||||||
|
prop "type" type="string" \
|
||||||
|
description="The type for this value."
|
||||||
|
prop "description" type="string" \
|
||||||
|
description="A description of this property's purpose."
|
||||||
|
prop "min" type="number" \
|
||||||
|
description="Minimum number of this value to be provided to the node."
|
||||||
|
prop "max" type="number" \
|
||||||
|
description="Maximum number of this value to be provided to the node."
|
||||||
}
|
}
|
||||||
node "children" {
|
node "children" max=1 {
|
||||||
prop "id" type="string"
|
prop "id" type="string" \
|
||||||
prop "ref" type="string"
|
description="A globally-unique ID of this children node."
|
||||||
prop "description" type="string"
|
prop "ref" type="string" \
|
||||||
|
description="A globally unique reference to another children node."
|
||||||
|
prop "description" type="string" \
|
||||||
|
description="A description of this property's purpose."
|
||||||
children ref="node-children"
|
children ref="node-children"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue