Skip to content

Commit

Permalink
feat: update json schema with operator and updownioStatusPage props (#85
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lsagetlethias authored Jan 17, 2024
1 parent be57ce7 commit 67bf041
Showing 1 changed file with 71 additions and 8 deletions.
79 changes: 71 additions & 8 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -159,32 +204,50 @@
"pages": {
"type": "array",
"description": "Additionnal URLs to scan with LightHouse",
"examples": ["/actu", "/partners"],
"examples": [
"/actu",
"/partners"
],
"items": {
"type": "string"
}
},
"repositories": {
"type": "array",
"description": "Repositories no GitHub",
"examples": ["SocialGouv/www", "SocialGouv/template"],
"examples": [
"SocialGouv/www",
"SocialGouv/template"
],
"items": {
"type": "string"
}
},
"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"
]
}

0 comments on commit 67bf041

Please sign in to comment.