Constraint
fields object[]
Array [
pathstring[]required
Example:
["$.example"]idstring
Example:
field-idpurposestring
Example:
Field purposenamestring
Example:
Field namefilter object
constobject
Example:
example-constenumnumber[]
Example:
[1,"two"]exclusiveMinimumobject
Example:
0exclusiveMaximumobject
Example:
100formatstring
Example:
date-timeminLengthnumber
Example:
1maxLengthnumber
Example:
255minimumobject
Example:
0maximumobject
Example:
100not object
constobject
Example:
example-constenumnumber[]
Example:
[1,"two"]exclusiveMinimumobject
Example:
0exclusiveMaximumobject
Example:
100formatstring
Example:
date-timeminLengthnumber
Example:
1maxLengthnumber
Example:
255minimumobject
Example:
0maximumobject
Example:
100not
Example:
nullpatternstring
Example:
^[A-Za-z]+$contains
Example:
nullitemsobject
Example:
{"property":{"type":"string","format":"default"}}patternstring
Example:
^[A-Za-z]+$contains object
constobject
Example:
example-constenumnumber[]
Example:
[1,"two"]exclusiveMinimumobject
Example:
0exclusiveMaximumobject
Example:
100formatstring
Example:
date-timeminLengthnumber
Example:
1maxLengthnumber
Example:
255minimumobject
Example:
0maximumobject
Example:
100not
Example:
nullpatternstring
Example:
^[A-Za-z]+$contains
Example:
nullitemsobject
Example:
{"property":{"type":"string","format":"default"}}itemsobject
Example:
{"property":{"type":"string","format":"default"}}typestringrequired
Example:
stringoptionalboolean
Example:
true]
limit_disclosurestring
Possible values: [required, preferred]
Example:
preferredConstraint
{
"fields": [
{
"path": [
"$.example"
],
"id": "example-field",
"purpose": "Example purpose",
"name": "Example Name",
"filter": {
"type": "string",
"pattern": "^[A-Za-z]+$"
},
"optional": false
}
],
"limit_disclosure": "preferred"
}