ajv/spec/tests/issues/28_escaping_pattern_error.json

22 lines
409 B
JSON
Raw Normal View History

2015-08-06 23:38:53 +03:00
[
{
"description": "escaping pattern error (#28)",
"schema": {
"type" : "object",
"properties": {
"mediaType": {
"type": "string",
"pattern": "^[a-zA-Z0-9!#$%^&*_\\-+{}|'.`~]+/[a-zA-Z0-9!#$%^&*_\\-+{}|'.`~]+$"
2015-08-06 23:38:53 +03:00
}
}
},
"tests": [
{
"description": "empty object",
"data": {},
"valid": true
}
]
}
]