emissary/internal/spec/proxy/schema.json

49 lines
1.6 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://proxy.emissary.cadoles.com/spec.json",
"title": "ProxySpec",
"description": "Emissary 'Proxy' specification",
"type": "object",
"properties": {
"proxies": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"mappings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hostPattern": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": [
"hostPattern",
"target"
]
}
}
},
"required": [
"address",
"mappings"
],
"additionalProperties": false
}
}
}
},
"required": [
"proxies"
],
"additionalProperties": false
}