113 lines
2.6 KiB
JSON
113 lines
2.6 KiB
JSON
{
|
|
"validator_script": "/root/.hermes/wizard-outputs/spark/json_validator.py",
|
|
"tests": [
|
|
{
|
|
"json": "{\"name\": \"test\", \"value\": 42}",
|
|
"description": "Simple object with string and number",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "[1, 2, 3, \"four\", true, null]",
|
|
"description": "Array with mixed types",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "\"just a string\"",
|
|
"description": "Plain string",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "3.14159",
|
|
"description": "Float number",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "42",
|
|
"description": "Integer number",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "true",
|
|
"description": "Boolean true",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "false",
|
|
"description": "Boolean false",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "null",
|
|
"description": "Null value",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "{\"nested\": {\"key\": \"value\"}}",
|
|
"description": "Nested object",
|
|
"expected_valid": true,
|
|
"actual_valid": true,
|
|
"passed": true,
|
|
"exit_code": 0
|
|
},
|
|
{
|
|
"json": "{\"name\": \"test\", \"broken\": }",
|
|
"description": "Invalid syntax - trailing broken",
|
|
"expected_valid": false,
|
|
"actual_valid": false,
|
|
"passed": true,
|
|
"exit_code": 1
|
|
},
|
|
{
|
|
"json": "{\"a\": 1, \"b\": 2,}",
|
|
"description": "Invalid - trailing comma",
|
|
"expected_valid": false,
|
|
"actual_valid": false,
|
|
"passed": true,
|
|
"exit_code": 1
|
|
},
|
|
{
|
|
"json": "{\"missing\": \"quote}",
|
|
"description": "Invalid - missing closing quote",
|
|
"expected_valid": false,
|
|
"actual_valid": false,
|
|
"passed": true,
|
|
"exit_code": 1
|
|
},
|
|
{
|
|
"json": "not json at all",
|
|
"description": "Completely invalid",
|
|
"expected_valid": false,
|
|
"actual_valid": false,
|
|
"passed": true,
|
|
"exit_code": 1
|
|
}
|
|
],
|
|
"passed": 13,
|
|
"failed": 0,
|
|
"total": 13,
|
|
"all_passed": true
|
|
} |