-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasyncapi-channel-schema.json
More file actions
75 lines (75 loc) · 2.87 KB
/
Copy pathasyncapi-channel-schema.json
File metadata and controls
75 lines (75 loc) · 2.87 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
68
69
70
71
72
73
74
75
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/async-apis/refs/heads/main/json-schema/asyncapi-channel-schema.json",
"title": "AsyncAPI Channel",
"description": "An AsyncAPI channel — an addressable component of the messaging system (a Kafka topic, MQTT topic, AMQP exchange/queue, WebSocket path, NATS subject, etc.) over which messages flow.",
"type": "object",
"properties": {
"address": {
"type": ["string", "null"],
"description": "Concrete address of the channel on the server. For Kafka: the topic name. For MQTT: the topic filter. For AMQP: the routing key. Null means the channel has no concrete address (used for runtime resolution)."
},
"title": {
"type": "string",
"description": "Human-readable title for the channel."
},
"summary": {
"type": "string",
"description": "Short summary of what the channel represents."
},
"description": {
"type": "string",
"description": "Long-form description. CommonMark allowed."
},
"servers": {
"type": "array",
"description": "References to the servers this channel is available on. Each item is a Reference Object pointing into #/servers.",
"items": {"type": "object"}
},
"messages": {
"type": "object",
"description": "Map of message objects (keyed by message id) that can flow over this channel. Each value is a Message Object or Reference.",
"additionalProperties": {"$ref": "asyncapi-message-schema.json"}
},
"parameters": {
"type": "object",
"description": "Map of parameter definitions used in the channel address template (e.g. `user/{userId}/signup`).",
"additionalProperties": {
"type": "object",
"properties": {
"description": {"type": "string"},
"enum": {"type": "array"},
"default": {"type": "string"},
"examples": {"type": "array"},
"location": {"type": "string"}
}
}
},
"tags": {
"type": "array",
"description": "Tags for categorizing channels.",
"items": {"type": "object"}
},
"externalDocs": {
"type": "object",
"description": "External documentation pointer."
},
"bindings": {
"type": "object",
"description": "Protocol-specific channel definitions (kafka, mqtt, amqp, ws, nats, sns, sqs, http, jms, pulsar, ibmmq, googlepubsub, anypointmq, solace).",
"properties": {
"kafka": {"type": "object"},
"mqtt": {"type": "object"},
"amqp": {"type": "object"},
"ws": {"type": "object"},
"nats": {"type": "object"},
"sns": {"type": "object"},
"sqs": {"type": "object"},
"http": {"type": "object"},
"jms": {"type": "object"},
"pulsar": {"type": "object"},
"ibmmq": {"type": "object"}
}
}
}
}