jspg progress
This commit is contained in:
62
tests/fixtures/old/cache.json
vendored
Normal file
62
tests/fixtures/old/cache.json
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
[
|
||||
{
|
||||
"description": "handling of non-existent schemas",
|
||||
"enums": [],
|
||||
"types": [],
|
||||
"puncs": [],
|
||||
"tests": [
|
||||
{
|
||||
"description": "validate against non-existent schema",
|
||||
"schema_id": "non_existent_schema",
|
||||
"data": {
|
||||
"foo": "bar"
|
||||
},
|
||||
"valid": false,
|
||||
"expect_errors": [
|
||||
{
|
||||
"code": "SCHEMA_NOT_FOUND",
|
||||
"path": "",
|
||||
"message_contains": "Schema 'non_existent_schema' not found"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "invalid schema caching",
|
||||
"enums": [],
|
||||
"types": [],
|
||||
"puncs": [
|
||||
{
|
||||
"name": "invalid_punc",
|
||||
"public": false,
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "invalid_punc.request",
|
||||
"type": [
|
||||
"invalid_type_value"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tests": [
|
||||
{
|
||||
"description": "cache returns errors for invalid types",
|
||||
"action": "cache",
|
||||
"data": {},
|
||||
"valid": false,
|
||||
"expect_errors": [
|
||||
{
|
||||
"code": "ENUM_VIOLATED",
|
||||
"path": ""
|
||||
},
|
||||
{
|
||||
"code": "SCHEMA_PARSE_FAILED",
|
||||
"path": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user