nats-service-endpoints/catalog/schema.json

28 lines
917 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "NATS-Service-Endpoints catalog",
"type": "object",
"required": ["version", "endpoints"],
"properties": {
"version": {"type": "string"},
"endpoints": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "for", "from", "to", "in", "out", "encryption", "reject"],
"properties": {
"name": {"type": "string"},
"pattern": {"type": "string"},
"for": {"type": "string"},
"from": {"type": "array", "items": {"type": "string"}},
"to": {"oneOf": [{"type": "string"}, {"type": "array", "items": {"type": "string"}}]},
"in": {},
"out": {},
"encryption": {"type": "string"},
"reject": {"type": "array", "items": {"type": "string"}},
"dead": {"type": "string"}
}
}
}
}
}