mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
74 lines
2.3 KiB
JSON
74 lines
2.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json",
|
|
"title": "Yunohost app package tests.toml schema",
|
|
"version": "0",
|
|
|
|
"type": "object",
|
|
"required": ["test_format", "default"],
|
|
|
|
"properties": {
|
|
"test_format": {"type": "number"}
|
|
},
|
|
"additionalProperties": {
|
|
"$ref": "#/$defs/test_suite"
|
|
},
|
|
|
|
"$defs": {
|
|
"install_args": {
|
|
"type": "object",
|
|
"required": [],
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[a-z][a-z0-9_]*$": {
|
|
"anyOf": [
|
|
{"type": "string"},
|
|
{"type": "number"},
|
|
{"type": "boolean"}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"test_suite": {
|
|
"type": "object",
|
|
"required": [],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"exclude": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"only": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"preinstall": {
|
|
"type": "string"
|
|
},
|
|
"args": {"$ref": "#/$defs/install_args"},
|
|
"test_upgrade_from": {
|
|
"type": "object",
|
|
"required": [],
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[a-z0-9_]*$": {
|
|
"type": "object",
|
|
"required": [],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"args": {"$ref": "#/$defs/install_args"}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|