You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'An optional description of this channel item. CommonMark syntax can be used for rich text representation.',
37
+
},
30
38
subscribe: 'Operation',
31
39
publish: 'Operation',
32
40
parameters: 'ParametersMap',
33
41
bindings: 'ChannelBindings',
34
-
servers: {type: 'array',items: {type: 'string'}},
42
+
servers: {
43
+
type: 'array',
44
+
items: {type: 'string'},
45
+
description:
46
+
'The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map).',
47
+
},
35
48
},
49
+
description: 'Describes the operations available on a single channel.',
'Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.',
description: 'Map describing protocol-specific definitions for a server.',
121
163
};
122
164
123
165
constServer: NodeType={
124
166
properties: {
125
-
url: {type: 'string'},
126
-
protocol: {type: 'string'},
127
-
protocolVersion: {type: 'string'},
128
-
description: {type: 'string'},
167
+
url: {
168
+
type: 'string',
169
+
description:
170
+
'REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}.',
171
+
},
172
+
protocol: {
173
+
type: 'string',
174
+
description:
175
+
'REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar.',
176
+
},
177
+
protocolVersion: {
178
+
type: 'string',
179
+
description:
180
+
'The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc.',
181
+
},
182
+
description: {
183
+
type: 'string',
184
+
description:
185
+
'An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.',
'An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools.',
'REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string.',
20
27
};
21
28
22
29
constLicense: NodeType={
30
+
...Oas3Types.License,
23
31
properties: {
24
-
name: {type: 'string'},
25
-
url: {type: 'string'},
26
-
identifier: {type: 'string'},
32
+
...Oas3Types.License.properties,
33
+
identifier: {
34
+
type: 'string',
35
+
description:
36
+
'An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field.',
37
+
},
27
38
},
28
-
required: ['name'],
29
-
extensionsPrefix: 'x-',
30
39
};
31
40
32
41
constInfo: NodeType={
42
+
...Oas3Types.Info,
33
43
properties: {
34
-
title: {type: 'string'},
35
-
version: {type: 'string'},
36
-
description: {type: 'string'},
37
-
termsOfService: {type: 'string'},
38
-
summary: {type: 'string'},
39
-
contact: 'Contact',
40
-
license: 'License',
41
-
'x-logo': 'Logo',
44
+
...Oas3Types.Info.properties,
45
+
summary: {
46
+
type: 'string',
47
+
description: 'A short summary of the API. This field MAY be used by tooling as required.',
48
+
},
42
49
},
43
-
required: ['title','version'],
44
-
extensionsPrefix: 'x-',
45
50
};
46
51
47
52
constComponents: NodeType={
53
+
...Oas3Types.Components,
48
54
properties: {
49
-
parameters: 'NamedParameters',
50
-
schemas: 'NamedSchemas',
51
-
responses: 'NamedResponses',
52
-
examples: 'NamedExamples',
53
-
requestBodies: 'NamedRequestBodies',
54
-
headers: 'NamedHeaders',
55
-
securitySchemes: 'NamedSecuritySchemes',
56
-
links: 'NamedLinks',
57
-
callbacks: 'NamedCallbacks',
55
+
...Oas3Types.Components.properties,
58
56
pathItems: 'NamedPathItems',
59
57
},
60
-
extensionsPrefix: 'x-',
61
58
};
62
59
63
60
constOperation: NodeType={
64
61
properties: {
65
62
tags: {
66
63
type: 'array',
67
64
items: {type: 'string'},
65
+
description:
66
+
'A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.',
68
67
},
69
68
summary: {
70
69
type: 'string',
71
-
description: `Optional short summary of what the operation does.`,
70
+
description: 'A short summary of what the operation does.',
description: `Optional description of the operation and its behavior. Supports Markdown formatting. Redocly tools support using $ref in this field to reuse or include content from other sources.`,
76
+
description: 'A verbose explanation of the operation behavior.',
0 commit comments