Files
metabuilder/packages/json_script_example/tests/test.schema.json
2025-12-31 13:54:38 +00:00

49 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://metabuilder.dev/schemas/json-script-test-logic.schema.json",
"title": "JSON Script Test Logic",
"description": "Test assertion functions for parameterized testing",
"type": "object",
"required": ["schema_version", "package", "functions"],
"properties": {
"schema_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"package": {
"type": "string"
},
"description": {
"type": "string"
},
"functions": {
"type": "array",
"description": "Test assertion functions",
"items": {
"type": "object",
"required": ["name", "params", "body"],
"properties": {
"name": {
"type": "string",
"pattern": "^test_"
},
"params": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "type"],
"properties": {
"name": { "const": "testCase" },
"type": { "const": "object" }
}
}
},
"body": {
"type": "array"
}
}
}
}
}
}