Files
default/tools/jsonschema/removed.schema.json
T
Joakim Sørensen a7dfaabaf6 Add JSON schema validation (#2539)
* Add JSON schema validation

* fix version

* move
2024-06-04 07:07:57 +02:00

27 lines
647 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for removed repositories",
"type": "array",
"items": {
"type": "object",
"properties": {
"link": {
"type": "string"
},
"reason": {
"type": "string"
},
"removal_type": {
"type": "string"
},
"repository": {
"type": "string",
"pattern": "^[\\w\\.-]+\/[\\w\\.-]+$"
}
},
"required": [
"removal_type",
"repository"
]
}
}