Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a range Base-level Constraint #32

Open
wants to merge 1 commit into
base: template-proposal
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions proposals/uber-templates-mca.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ Below is a list of proposed base-level constraints that MUST be supported if an
+<data name="pattern">+::
The contents of the +value+ property contains a <<poxisre, [POSIX-RE]>> regular expression that SHOULD be applied to the field.

+<data name="range">+::
The contents of the +value+ property contains a range expression: a number followed by a - followed by a number. Ranges are always inclusive. For instance, +12-15+ would be satisfied by any of: 12, 13, 14 or 15.

==== Constraint Extensibility
Since constraints are established using reserved words for the +name+ property of a +data+ element, extending the list of supported constraints is done by registering a new reserved word and documenting how implementors can author and interpret that element and any possible child elements.

Expand Down