-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
(Even lower priority?)
Similar to the situation with the minExclusive and maxExclusive issue (#119), JSON Schema (+ XSD, but not in the base of Relax NG) has a default property.
If this were thought useful for JCR, it could be another annotation. For example:
"required" : @{default false} boolean ?,
"country" : @{default "USA"} string ?,
"state" : @{default $closed} ( "open" | $closed ) ?
$closed = "closed"
I hope limiting the feature to primitive types would be sufficient, especially as braces can't go in annotations. If object default were thought to be necessary, we could do something like:
"address" : @{default $downing-street} $address ?,
$downing-street = { "number" : 10, "street" : "Downing Street", "town" : "London" }
Metadata
Metadata
Assignees
Labels
No labels