-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasyncapi-server-schema.json
More file actions
67 lines (67 loc) · 2.5 KB
/
Copy pathasyncapi-server-schema.json
File metadata and controls
67 lines (67 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/async-apis/refs/heads/main/json-schema/asyncapi-server-schema.json",
"title": "AsyncAPI Server",
"description": "An AsyncAPI Server — describes a broker or endpoint the application connects to. The protocol field selects the binding namespace (kafka, mqtt, amqp, ws, nats, etc.).",
"type": "object",
"required": ["host", "protocol"],
"properties": {
"host": {
"type": "string",
"description": "Hostname (and optional port) of the server. Variables allowed via `{var}` template syntax.",
"examples": ["kafka.example.com:9092", "broker.hivemq.com:1883", "{env}.events.example.com"]
},
"pathname": {
"type": "string",
"description": "Optional path component for protocols that need it (e.g. AMQP vhost, WebSocket path)."
},
"protocol": {
"type": "string",
"description": "The protocol used. Drives which bindings are valid.",
"enum": [
"amqp", "amqps", "http", "https", "ibmmq", "jms",
"kafka", "kafka-secure", "anypointmq", "mqtt", "secure-mqtt",
"solace", "stomp", "stomps", "ws", "wss",
"mercure", "googlepubsub", "pulsar", "nats", "sns", "sqs", "ros2"
]
},
"protocolVersion": {
"type": "string",
"description": "Version of the protocol, e.g. `0.9.1` for AMQP, `5.0` for MQTT, `3.6.0` for Kafka."
},
"title": {"type": "string"},
"summary": {"type": "string"},
"description": {"type": "string"},
"variables": {
"type": "object",
"description": "Map of variables used in the host/pathname template.",
"additionalProperties": {
"type": "object",
"properties": {
"enum": {"type": "array"},
"default": {"type": "string"},
"description": {"type": "string"},
"examples": {"type": "array"}
}
}
},
"security": {
"type": "array",
"description": "Security requirements that apply to all operations on this server.",
"items": {"type": "object"}
},
"tags": {"type": "array"},
"externalDocs": {"type": "object"},
"bindings": {
"type": "object",
"description": "Protocol-specific server bindings (e.g. kafka.schemaRegistryUrl).",
"properties": {
"kafka": {"type": "object"},
"mqtt": {"type": "object"},
"amqp": {"type": "object"},
"ws": {"type": "object"},
"ibmmq": {"type": "object"}
}
}
}
}