1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/tests/specs/schema.json
David Sherret db3b3fb665
chore: auto-complete for __spec__.jsonc file (#23476)
This makes writing these tests a little easier.
2024-04-20 22:47:10 +00:00

90 lines
1.8 KiB
JSON

{
"$id": "https://github.com/denoland/deno/blob/tests/specs/schema.json",
"$schema": "http://json-schema.org/draft-07/schema",
"description": "Schema file for the __test__.jsonc files",
"required": [],
"title": "Deno internal spec test schema",
"type": "object",
"definitions": {
"single_test": {
"type": "object",
"required": ["args", "output"],
"properties": {
"args": {
"default": "",
"oneOf": [{
"type": "string"
}, {
"type": "array",
"items": {
"type": "string"
}
}]
},
"cleanDenoDir": {
"type": "boolean"
},
"cwd": {
"type": "string"
},
"commandName": {
"type": "string"
},
"envs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"output": {
"type": "string"
},
"exitCode": {
"type": "integer"
}
}
}
},
"oneOf": [{
"required": ["steps"],
"properties": {
"tempDir": {
"type": "boolean"
},
"base": {
"type": "string"
},
"envs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"steps": {
"type": "array",
"items": {
"$ref": "#/definitions/single_test"
}
}
}
}, {
"allOf": [{
"properties": {
"tempDir": {
"type": "boolean"
},
"base": {
"type": "string"
},
"envs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}, {
"$ref": "#/definitions/single_test"
}]
}]
}