Merge pull request #1723 from Salamandar/schemas_fix

Fixes for schemas
This commit is contained in:
Alexandre Aubin 2023-08-26 11:22:30 +02:00 committed by GitHub
commit 8efb8d9ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/YunoHost/apps/blob/master/schemas/manifest.v2.schema.json", "$id": "https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json",
"title": "Yunohost app manifest.toml schema", "title": "Yunohost app manifest.toml schema",
"version": "0", "version": "0",

View File

@ -1,6 +1,6 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/YunoHost/apps/blob/master/schemas/tests.v1.schema.json", "$id": "https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json",
"title": "Yunohost app package tests.toml schema", "title": "Yunohost app package tests.toml schema",
"version": "0", "version": "0",
@ -21,12 +21,10 @@
"additionalProperties": false, "additionalProperties": false,
"patternProperties": { "patternProperties": {
"^[a-z][a-z0-9_]*$": { "^[a-z][a-z0-9_]*$": {
"type": { "anyOf": [
"anyOf": [ {"type": "string"},
{"type": "string"}, {"type": "number"}
{"type": "number"} ]
]
}
} }
} }
}, },
@ -56,7 +54,7 @@
"required": [], "required": [],
"additionalProperties": false, "additionalProperties": false,
"patternProperties": { "patternProperties": {
"^[a-z][a-z0-9_]*$": { "^[a-z0-9_]*$": {
"type": "object", "type": "object",
"required": [], "required": [],
"additionalProperties": false, "additionalProperties": false,