Skip to content

Commit

Permalink
Update ksl-schema.kdl
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat authored Jan 21, 2025
1 parent b03e651 commit bb76048
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions schema/ksl-schema.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ children {
}
children {
// TODO: be more precise and clear about merge + override behavior.
// TODO: provide a way to "undefine" the defaults?
node default title="Definition default" description="""
Any children of this node will be merged into the node
definition itself, as if written directly into the node.
Expand All @@ -293,6 +292,12 @@ children {
allow-others
}
}
node undefine @ksl:title="Undefine a node" {
arg {
type boolean
default #true
}
}
node required title="Node is required" description="By default, all declared child nodes are optional. Including this option will require that this node always appear in its parent's children block." {
arg {
type boolean
Expand Down Expand Up @@ -596,7 +601,6 @@ definitions {
node node-validations id=node-validations description="Validations that can be applied to nodes themselves." {
children {
node min title="Minimum node instance count" description="Minimum number of instances of this node in its parent's children." {
// TODO:
arg {
gte 0
type integer
Expand Down

0 comments on commit bb76048

Please sign in to comment.