Files
service-types-authority/schema.json
Stephen Finucane 24cc4d06c8 Bump JSON Schema version
Draft 04 is overy 12 years old and has long been superseded by newer
revisions. In addition, the jsonschema Python library has deprecated
support for this version. It is time to move on, to the latest and
greatest version currently available. No changes are necessary beyond
this bump.

Change-Id: Ic12c56157857115a71d2c2b7b88fc01a73b0d20d
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2025-06-27 11:38:09 +01:00

62 lines
2.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"id": "https://specs.openstack.org/openstack/service-types-authority/_downloads/schema.json#",
"type": "object",
"required": ["services"],
"additionalProperties": false,
"properties": {
"services": {
"type": "array",
"items": {
"$ref": "#/definitions/service"
}
}
},
"definitions":{
"service":{
"properties": {
"service_type": {
"type":"string",
"pattern":"^([a-z][a-z-]*[a-z]+|ec2-api)$",
"description": "The unique identifier for the service to be used in the service catalog"
},
"project": {
"type":"string",
"pattern":"^([a-z][a-z-]*[a-z]+|ec2-api)$",
"description": "The OpenStack project name that contains the definition of the API"
},
"api_reference": {
"type":"string",
"format": "url",
"description": "A published API reference document for the API identified by this service type."
},
"api_reference_project": {
"type":"string",
"description": "Project where API reference is found, if not the same as the main project"
},
"description": {
"type":"string",
"description": "A short description about the service in question."
},
"aliases": {
"type": "array",
"items": {
"type": "string"
},
"description": "An ordered list of historical aliases for this service type."
},
"secondary": {
"type": "boolean",
"description": "Is this a secondary service for a project?"
}
},
"additionalProperties":false,
"required":[
"api_reference",
"project",
"service_type"
]
}
}
}