1
1
mirror of https://github.com/theoludwig/html-w3c-validator.git synced 2024-12-08 00:45:37 +01:00

fix: improve config schema

This commit is contained in:
Théo LUDWIG 2024-02-02 15:56:32 +01:00
parent 92320385b5
commit a1340b2729
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -7,6 +7,7 @@
"$schema": { "$schema": {
"description": "JSON Schema URI", "description": "JSON Schema URI",
"type": "string", "type": "string",
"format": "uri",
"default": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json" "default": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json"
}, },
"urls": { "urls": {
@ -17,6 +18,7 @@
"items": { "items": {
"description": "URL to validate.", "description": "URL to validate.",
"type": "string", "type": "string",
"format": "uri",
"minLength": 1 "minLength": 1
} }
}, },
@ -28,11 +30,12 @@
"items": { "items": {
"description": "File to validate.", "description": "File to validate.",
"type": "string", "type": "string",
"format": "uri-reference",
"minLength": 1 "minLength": 1
} }
}, },
"severities": { "severities": {
"description": "Specify the severities of the validator messages to report.", "description": "Specify the severities to report.",
"type": "array", "type": "array",
"minItems": 1, "minItems": 1,
"default": ["warning", "error"], "default": ["warning", "error"],