Files
jspg/tests/fixtures/old/cache.json
2026-02-17 17:41:54 -05:00

62 lines
1.7 KiB
JSON

[
{
"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": ""
}
]
}
]
}
]