Files
go-sip/docs/archive/upstream/v1/dispatcher-config.schema.json
T

63 lines
1.4 KiB
JSON

{
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"dispatcher_id",
"oss"
],
"properties": {
"schema_version": {
"const": "1.0"
},
"dispatcher_id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"oss": {
"type": "object",
"additionalProperties": false,
"required": [
"endpoint",
"region",
"bucket",
"object_prefix",
"access_key_id_env",
"access_key_secret_env"
],
"properties": {
"endpoint": {
"type": "string",
"minLength": 1,
"format": "uri",
"pattern": "^https?://"
},
"region": {
"type": "string",
"minLength": 1
},
"bucket": {
"type": "string",
"minLength": 1
},
"object_prefix": {
"type": "string",
"minLength": 1
},
"access_key_id_env": {
"type": "string",
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
},
"access_key_secret_env": {
"type": "string",
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
}
}
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://go-sip.local/contracts/v1/dispatcher-config.schema.json"
}