mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
49 lines
1.3 KiB
JSON
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|