diff --git a/schema.json b/schema.json index 583c71b79f5..839870247ed 100644 --- a/schema.json +++ b/schema.json @@ -131,7 +131,52 @@ "matomoUrl": { "type": "string" }, - "tools": { "$ref": "#/definitions/tools" }, + "operator": { + "type": "object", + "description": "Ajoute un logo d'opérateur. Soit une URL, soit un objet avec src et direction", + "properties": { + "logo": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "src": { + "type": "string" + }, + "direction": { + "type": "string", + "default": "horizontal", + "enum": [ + "horizontal", + "vertical" + ] + } + }, + "required": [ + "src" + ] + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "logo", + "name" + ] + }, + "updownioStatusPage": { + "type": "string", + "description": "URL de la page de status updown.io" + }, + "tools": { + "$ref": "#/definitions/tools" + }, "urls": { "type": "array", "items": { @@ -159,7 +204,10 @@ "pages": { "type": "array", "description": "Additionnal URLs to scan with LightHouse", - "examples": ["/actu", "/partners"], + "examples": [ + "/actu", + "/partners" + ], "items": { "type": "string" } @@ -167,7 +215,10 @@ "repositories": { "type": "array", "description": "Repositories no GitHub", - "examples": ["SocialGouv/www", "SocialGouv/template"], + "examples": [ + "SocialGouv/www", + "SocialGouv/template" + ], "items": { "type": "string" } @@ -175,16 +226,28 @@ "docker": { "type": "array", "description": "Docker images to scan", - "examples": ["ghcr.io/socialgouv/www/app"], + "examples": [ + "ghcr.io/socialgouv/www/app" + ], "items": { "type": "string" } }, - "tools": { "$ref": "#/definitions/tools" } + "tools": { + "$ref": "#/definitions/tools" + } }, - "required": ["url"] + "required": [ + "url" + ] } } }, - "required": ["title", "description", "entity", "tools", "urls"] -} + "required": [ + "title", + "description", + "entity", + "tools", + "urls" + ] +} \ No newline at end of file