@rline/json
Version:
JSON Schema compiler
74 lines • 1.87 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "StringPropertyOptions",
"type": "object",
"properties": {
"type": {
"const": "string"
},
"default": {
"type": "string"
},
"stringFormat": {
"$ref": "../enum/string-format.schema.json"
},
"minLength": {
"type": "integer"
},
"maxLength": {
"type": "integer"
},
"isIn": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"isNotIn": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"contains": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"notContains": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"startWith": {
"type": "string"
},
"notStartWith": {
"type": "string"
},
"endWith": {
"type": "string"
},
"notEndWith": {
"type": "string"
},
"containProperty": {
"$ref": "../name/property-name.schema.json"
},
"notContainProperty": {
"$ref": "../name/property-name.schema.json"
},
"longerThanProperty": {
"$ref": "../name/property-name.schema.json"
},
"shorterThanProperty": {
"$ref": "../name/property-name.schema.json"
}
}
}