jspg progress

This commit is contained in:
2026-02-17 17:41:54 -05:00
parent 6e06b6fdc2
commit 32ed463df8
188 changed files with 36654 additions and 15058 deletions

62
tests/fixtures/old/errors.json vendored Normal file
View File

@ -0,0 +1,62 @@
[
{
"description": "detailed error reporting",
"enums": [],
"types": [],
"puncs": [
{
"name": "detailed_errors_test",
"public": false,
"schemas": [
{
"$id": "detailed_errors_test.request",
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"street": {
"type": "string"
},
"city": {
"type": "string",
"maxLength": 10
}
},
"required": [
"street",
"city"
]
}
},
"required": [
"address"
]
}
]
}
],
"tests": [
{
"description": "multiple errors in nested object",
"data": {
"address": {
"street": 123,
"city": "Supercalifragilisticexpialidocious"
}
},
"valid": false,
"expect_errors": [
{
"code": "TYPE_MISMATCH",
"path": "/address/street"
},
{
"code": "MAX_LENGTH_VIOLATED",
"path": "/address/city"
}
]
}
]
}
]