- MixinBindings
Implements functions to deal with the common Bindings object.
- MixinDescription
Implements functions to deal with the description field.
- MixinExternalDocs
Implements functions to deal with the ExternalDocs object.
- MixinSpecificationExtensions
Implements functions to deal with the SpecificationExtensions object.
- MixinTags
Implements functions to deal with the Tags object.
- SchemaIteratorCallbackType
The different kind of stages when crawling a schema.
- SchemaTypesToIterate
The different types of schemas you can iterate
- @asyncapi/parser
- instance
- .ChannelParameter ⇐
Base
- .location() ⇒
string
- .schema() ⇒
Schema
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .location() ⇒
- .Channel ⇐
Base
- .parameters() ⇒
Object.<string, ChannelParameter>
- .parameter(name) ⇒
ChannelParameter
- .hasParameters() ⇒
boolean
- .publish() ⇒
PublishOperation
- .subscribe() ⇒
SubscribeOperation
- .hasPublish() ⇒
boolean
- .hasSubscribe() ⇒
boolean
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .parameters() ⇒
- .Components ⇐
Base
- .messages() ⇒
Object.<string, Message>
- .hasMessages() ⇒
boolean
- .message(name) ⇒
Message
- .schemas() ⇒
Object.<string, Schema>
- .hasSchemas() ⇒
boolean
- .schema(name) ⇒
Schema
- .securitySchemes() ⇒
Object.<string, SecurityScheme>
- .hasSecuritySchemes() ⇒
boolean
- .securityScheme(name) ⇒
SecurityScheme
- .parameters() ⇒
Object.<string, ChannelParameter>
- .hasParameters() ⇒
boolean
- .parameter(name) ⇒
ChannelParameter
- .correlationIds() ⇒
Object.<string, CorrelationId>
- .hasCorrelationIds() ⇒
boolean
- .correlationId(name) ⇒
CorrelationId
- .operationTraits() ⇒
Object.<string, OperationTrait>
- .hasOperationTraits() ⇒
boolean
- .operationTrait(name) ⇒
OperationTrait
- .messageTraits() ⇒
Object.<string, MessageTrait>
- .hasMessageTraits() ⇒
boolean
- .messageTrait(name) ⇒
MessageTrait
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .messages() ⇒
- .Contact ⇐
Base
- .name() ⇒
string
- .url() ⇒
string
- .email() ⇒
string
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
- .CorrelationId ⇐
Base
- .location() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .location() ⇒
- .ExternalDocs ⇐
Base
- .url() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .url() ⇒
- .Info ⇐
Base
- .title() ⇒
string
- .version() ⇒
string
- .termsOfService() ⇒
string
|undefined
- .license() ⇒
License
- .contact() ⇒
Contact
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .title() ⇒
- .License ⇐
Base
- .name() ⇒
string
- .url() ⇒
string
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
- .MessageTrait ⇐
MessageTraitable
- .MessageTraitable ⇐
Base
- .headers() ⇒
Schema
- .header(name) ⇒
Schema
- .correlationId() ⇒
CorrelationId
- .schemaFormat() ⇒
string
- .contentType() ⇒
string
- .name() ⇒
string
- .title() ⇒
string
- .summary() ⇒
string
- .examples() ⇒
Array.<any>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .headers() ⇒
- .Message ⇐
MessageTraitable
- .uid() ⇒
string
- .payload() ⇒
Schema
- .originalPayload() ⇒
any
- .originalSchemaFormat() ⇒
string
- .uid() ⇒
- .OAuthFlow ⇐
Base
- .authorizationUrl() ⇒
string
- .tokenUrl() ⇒
string
- .refreshUrl() ⇒
string
- .scopes() ⇒
Object.<string, string>
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .authorizationUrl() ⇒
- .OperationTrait ⇐
OperationTraitable
- .OperationTraitable ⇐
Base
- .id() ⇒
string
- .summary() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .id() ⇒
- .Operation ⇐
OperationTraitable
- .hasMultipleMessages() ⇒
boolean
- .messages() ⇒
Array.<Message>
- .message() ⇒
Message
- .hasMultipleMessages() ⇒
- .PublishOperation ⇐
Operation
- .isPublish() ⇒
boolean
- .isSubscribe() ⇒
boolean
- .kind() ⇒
string
- .isPublish() ⇒
- .Schema ⇐
Base
- .uid() ⇒
string
- .$id() ⇒
string
- .multipleOf() ⇒
number
- .maximum() ⇒
number
- .exclusiveMaximum() ⇒
number
- .minimum() ⇒
number
- .exclusiveMinimum() ⇒
number
- .maxLength() ⇒
number
- .minLength() ⇒
number
- .pattern() ⇒
string
- .maxItems() ⇒
number
- .minItems() ⇒
number
- .uniqueItems() ⇒
boolean
- .maxProperties() ⇒
number
- .minProperties() ⇒
number
- .required() ⇒
Array.<string>
- .enum() ⇒
Array.<any>
- .type() ⇒
string
|Array.<string>
- .allOf() ⇒
Array.<Schema>
- .oneOf() ⇒
Array.<Schema>
- .anyOf() ⇒
Array.<Schema>
- .not() ⇒
Schema
- .items() ⇒
Schema
|Array.<Schema>
- .properties() ⇒
Object.<string, Schema>
- .property(name) ⇒
Schema
- .additionalProperties() ⇒
boolean
|Schema
- .additionalItems() ⇒
Schema
- .patternProperties() ⇒
Object.<string, Schema>
- .const() ⇒
any
- .contains() ⇒
Schema
- .dependencies() ⇒
Object.<string, (Schema|Array.<string>)>
- .propertyNames() ⇒
Schema
- .if() ⇒
Schema
- .then() ⇒
Schema
- .else() ⇒
Schema
- .format() ⇒
string
- .contentEncoding() ⇒
string
- .contentMediaType() ⇒
string
- .definitions() ⇒
Object.<string, Schema>
- .title() ⇒
string
- .default() ⇒
any
- .deprecated() ⇒
boolean
- .discriminator() ⇒
string
- .readOnly() ⇒
boolean
- .writeOnly() ⇒
boolean
- .examples() ⇒
Array.<any>
- .isCircular() ⇒
boolean
- .hasCircularProps() ⇒
boolean
- .circularProps() ⇒
Array.<string>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .uid() ⇒
- .SecurityScheme ⇐
Base
- .type() ⇒
string
- .name() ⇒
string
- .in() ⇒
string
- .scheme() ⇒
string
- .bearerFormat() ⇒
string
- .openIdConnectUrl() ⇒
string
- .flows() ⇒
Object.<string, OAuthFlow>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .type() ⇒
- .ServerSecurityRequirement ⇐
Base
- .ServerVariable ⇐
Base
- .allowedValues() ⇒
Array.<any>
- .allows(name) ⇒
boolean
- .hasAllowedValues() ⇒
boolean
- .defaultValue() ⇒
string
- .hasDefaultValue() ⇒
boolean
- .examples() ⇒
Array.<string>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .allowedValues() ⇒
- .Server ⇐
Base
- .url() ⇒
string
- .protocol() ⇒
string
- .protocolVersion() ⇒
string
- .variables() ⇒
Object.<string, ServerVariable>
- .variable(name) ⇒
ServerVariable
- .hasVariables() ⇒
boolean
- .security() ⇒
Array.<ServerSecurityRequirement>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .url() ⇒
- .SubscribeOperation ⇐
Operation
- .isPublish() ⇒
boolean
- .isSubscribe() ⇒
boolean
- .kind() ⇒
string
- .isPublish() ⇒
- .Tag ⇐
Base
- .name() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
- .ChannelParameter ⇐
- static
- .TraverseSchemas ⇒
boolean
- .TraverseSchemas ⇒
- inner
- ~ParserError ⇐
Error
- ~AsyncAPIDocument ⇐
Base
- .version() ⇒
string
- .info() ⇒
Info
- .id() ⇒
string
- .hasServers() ⇒
boolean
- .servers() ⇒
Object.<string, Server>
- .serverNames() ⇒
Array.<string>
- .server(name) ⇒
Server
- .hasDefaultContentType() ⇒
boolean
- .defaultContentType() ⇒
string
|null
- .hasChannels() ⇒
boolean
- .channels() ⇒
Object.<string, Channel>
- .channelNames() ⇒
Array.<string>
- .channel(name) ⇒
Channel
- .hasComponents() ⇒
boolean
- .components() ⇒
Components
- .hasMessages() ⇒
boolean
- .allMessages() ⇒
Map.<string, Message>
- .allSchemas() ⇒
Map.<string, Schema>
- .hasCircular() ⇒
boolean
- .traverseSchemas(callback, schemaTypesToIterate)
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .version() ⇒
- ~Base
- .json() ⇒
any
- .json() ⇒
- ~parse(asyncapiYAMLorJSON, [options]) ⇒
Promise.<AsyncAPIDocument>
- ~parseFromUrl(url, [fetchOptions], [options]) ⇒
Promise.<AsyncAPIDocument>
- ~registerSchemaParser(parserModule)
- ~ParserError ⇐
- instance
Implements functions to deal with a ChannelParameter object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .ChannelParameter ⇐
Base
- .location() ⇒
string
- .schema() ⇒
Schema
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .location() ⇒
Kind: instance method of ChannelParameter
Kind: instance method of ChannelParameter
Kind: instance method of ChannelParameter
Mixes: hasDescription
Kind: instance method of ChannelParameter
Mixes: description
Kind: instance method of ChannelParameter
Mixes: hasExtensions
Kind: instance method of ChannelParameter
Mixes: extensions
Kind: instance method of ChannelParameter
Mixes: extensionKeys
Kind: instance method of ChannelParameter
Mixes: extKeys
Kind: instance method of ChannelParameter
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ChannelParameter
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ChannelParameter
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ChannelParameter
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a Channel object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinBindings
, MixinSpecificationExtensions
- .Channel ⇐
Base
- .parameters() ⇒
Object.<string, ChannelParameter>
- .parameter(name) ⇒
ChannelParameter
- .hasParameters() ⇒
boolean
- .publish() ⇒
PublishOperation
- .subscribe() ⇒
SubscribeOperation
- .hasPublish() ⇒
boolean
- .hasSubscribe() ⇒
boolean
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .parameters() ⇒
Kind: instance method of Channel
Kind: instance method of Channel
Param | Type | Description |
---|---|---|
name | string |
Name of the parameter. |
Kind: instance method of Channel
Kind: instance method of Channel
Kind: instance method of Channel
Kind: instance method of Channel
Kind: instance method of Channel
Kind: instance method of Channel
Mixes: hasDescription
Kind: instance method of Channel
Mixes: description
Kind: instance method of Channel
Mixes: hasBindings
Kind: instance method of Channel
Mixes: bindings
Kind: instance method of Channel
Mixes: bindingProtocols
Kind: instance method of Channel
Mixes: hasBinding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of Channel
Mixes: binding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of Channel
Mixes: hasExtensions
Kind: instance method of Channel
Mixes: extensions
Kind: instance method of Channel
Mixes: extensionKeys
Kind: instance method of Channel
Mixes: extKeys
Kind: instance method of Channel
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Channel
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Channel
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Channel
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a Components object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinSpecificationExtensions
- .Components ⇐
Base
- .messages() ⇒
Object.<string, Message>
- .hasMessages() ⇒
boolean
- .message(name) ⇒
Message
- .schemas() ⇒
Object.<string, Schema>
- .hasSchemas() ⇒
boolean
- .schema(name) ⇒
Schema
- .securitySchemes() ⇒
Object.<string, SecurityScheme>
- .hasSecuritySchemes() ⇒
boolean
- .securityScheme(name) ⇒
SecurityScheme
- .parameters() ⇒
Object.<string, ChannelParameter>
- .hasParameters() ⇒
boolean
- .parameter(name) ⇒
ChannelParameter
- .correlationIds() ⇒
Object.<string, CorrelationId>
- .hasCorrelationIds() ⇒
boolean
- .correlationId(name) ⇒
CorrelationId
- .operationTraits() ⇒
Object.<string, OperationTrait>
- .hasOperationTraits() ⇒
boolean
- .operationTrait(name) ⇒
OperationTrait
- .messageTraits() ⇒
Object.<string, MessageTrait>
- .hasMessageTraits() ⇒
boolean
- .messageTrait(name) ⇒
MessageTrait
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .messages() ⇒
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the message. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the schema. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the security schema. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the channel parameter. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the correlationId. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the operation trait. |
Kind: instance method of Components
Kind: instance method of Components
Kind: instance method of Components
Param | Type | Description |
---|---|---|
name | string |
Name of the message trait. |
Kind: instance method of Components
Mixes: hasExtensions
Kind: instance method of Components
Mixes: extensions
Kind: instance method of Components
Mixes: extensionKeys
Kind: instance method of Components
Mixes: extKeys
Kind: instance method of Components
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Components
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Components
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Components
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with the Contact object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinSpecificationExtensions
- .Contact ⇐
Base
- .name() ⇒
string
- .url() ⇒
string
- .email() ⇒
string
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
Kind: instance method of Contact
Kind: instance method of Contact
Kind: instance method of Contact
Kind: instance method of Contact
Mixes: hasExtensions
Kind: instance method of Contact
Mixes: extensions
Kind: instance method of Contact
Mixes: extensionKeys
Kind: instance method of Contact
Mixes: extKeys
Kind: instance method of Contact
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Contact
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Contact
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Contact
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a CorrelationId object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .CorrelationId ⇐
Base
- .location() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .location() ⇒
Kind: instance method of CorrelationId
Kind: instance method of CorrelationId
Mixes: hasDescription
Kind: instance method of CorrelationId
Mixes: description
Kind: instance method of CorrelationId
Mixes: hasExtensions
Kind: instance method of CorrelationId
Mixes: extensions
Kind: instance method of CorrelationId
Mixes: extensionKeys
Kind: instance method of CorrelationId
Mixes: extKeys
Kind: instance method of CorrelationId
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of CorrelationId
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of CorrelationId
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of CorrelationId
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with an ExternalDocs object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .ExternalDocs ⇐
Base
- .url() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .url() ⇒
Kind: instance method of ExternalDocs
Kind: instance method of ExternalDocs
Mixes: hasDescription
Kind: instance method of ExternalDocs
Mixes: description
Kind: instance method of ExternalDocs
Mixes: hasExtensions
Kind: instance method of ExternalDocs
Mixes: extensions
Kind: instance method of ExternalDocs
Mixes: extensionKeys
Kind: instance method of ExternalDocs
Mixes: extKeys
Kind: instance method of ExternalDocs
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ExternalDocs
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ExternalDocs
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ExternalDocs
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with the Info object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .Info ⇐
Base
- .title() ⇒
string
- .version() ⇒
string
- .termsOfService() ⇒
string
|undefined
- .license() ⇒
License
- .contact() ⇒
Contact
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .title() ⇒
Kind: instance method of Info
Kind: instance method of Info
Kind: instance method of Info
Kind: instance method of Info
Kind: instance method of Info
Kind: instance method of Info
Mixes: hasDescription
Kind: instance method of Info
Mixes: description
Kind: instance method of Info
Mixes: hasExtensions
Kind: instance method of Info
Mixes: extensions
Kind: instance method of Info
Mixes: extensionKeys
Kind: instance method of Info
Mixes: extKeys
Kind: instance method of Info
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Info
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Info
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Info
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with the License object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinSpecificationExtensions
- .License ⇐
Base
- .name() ⇒
string
- .url() ⇒
string
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
Kind: instance method of License
Kind: instance method of License
Kind: instance method of License
Mixes: hasExtensions
Kind: instance method of License
Mixes: extensions
Kind: instance method of License
Mixes: extensionKeys
Kind: instance method of License
Mixes: extKeys
Kind: instance method of License
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of License
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of License
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of License
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a MessageTrait object.
Kind: instance class of @asyncapi/parser
Extends: MessageTraitable
Implements functions to deal with a the common properties that Message and MessageTrait objects have.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinTags
, MixinExternalDocs
, MixinBindings
, MixinSpecificationExtensions
- .MessageTraitable ⇐
Base
- .headers() ⇒
Schema
- .header(name) ⇒
Schema
- .correlationId() ⇒
CorrelationId
- .schemaFormat() ⇒
string
- .contentType() ⇒
string
- .name() ⇒
string
- .title() ⇒
string
- .summary() ⇒
string
- .examples() ⇒
Array.<any>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .headers() ⇒
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Param | Type | Description |
---|---|---|
name | string |
Name of the header. |
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Kind: instance method of MessageTraitable
Mixes: hasDescription
Kind: instance method of MessageTraitable
Mixes: description
Kind: instance method of MessageTraitable
Mixes: hasTags
Kind: instance method of MessageTraitable
Mixes: tags
Kind: instance method of MessageTraitable
Mixes: tagNames
Kind: instance method of MessageTraitable
Mixes: hasTag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of MessageTraitable
Mixes: tag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of MessageTraitable
Mixes: hasExternalDocs
Kind: instance method of MessageTraitable
Mixes: externalDocs
Kind: instance method of MessageTraitable
Mixes: hasBindings
Kind: instance method of MessageTraitable
Mixes: bindings
Kind: instance method of MessageTraitable
Mixes: bindingProtocols
Kind: instance method of MessageTraitable
Mixes: hasBinding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of MessageTraitable
Mixes: binding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of MessageTraitable
Mixes: hasExtensions
Kind: instance method of MessageTraitable
Mixes: extensions
Kind: instance method of MessageTraitable
Mixes: extensionKeys
Kind: instance method of MessageTraitable
Mixes: extKeys
Kind: instance method of MessageTraitable
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of MessageTraitable
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of MessageTraitable
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of MessageTraitable
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a Message object.
Kind: instance class of @asyncapi/parser
Extends: MessageTraitable
- .Message ⇐
MessageTraitable
- .uid() ⇒
string
- .payload() ⇒
Schema
- .originalPayload() ⇒
any
- .originalSchemaFormat() ⇒
string
- .uid() ⇒
Kind: instance method of Message
Kind: instance method of Message
Kind: instance method of Message
Kind: instance method of Message
Implements functions to deal with a OAuthFlow object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinSpecificationExtensions
- .OAuthFlow ⇐
Base
- .authorizationUrl() ⇒
string
- .tokenUrl() ⇒
string
- .refreshUrl() ⇒
string
- .scopes() ⇒
Object.<string, string>
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .authorizationUrl() ⇒
Kind: instance method of OAuthFlow
Kind: instance method of OAuthFlow
Kind: instance method of OAuthFlow
Kind: instance method of OAuthFlow
Kind: instance method of OAuthFlow
Mixes: hasExtensions
Kind: instance method of OAuthFlow
Mixes: extensions
Kind: instance method of OAuthFlow
Mixes: extensionKeys
Kind: instance method of OAuthFlow
Mixes: extKeys
Kind: instance method of OAuthFlow
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OAuthFlow
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OAuthFlow
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OAuthFlow
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a OperationTrait object.
Kind: instance class of @asyncapi/parser
Extends: OperationTraitable
Implements functions to deal with the common properties Operation and OperationTrait object have.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinTags
, MixinExternalDocs
, MixinBindings
, MixinSpecificationExtensions
- .OperationTraitable ⇐
Base
- .id() ⇒
string
- .summary() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .id() ⇒
Kind: instance method of OperationTraitable
Kind: instance method of OperationTraitable
Kind: instance method of OperationTraitable
Mixes: hasDescription
Kind: instance method of OperationTraitable
Mixes: description
Kind: instance method of OperationTraitable
Mixes: hasTags
Kind: instance method of OperationTraitable
Mixes: tags
Kind: instance method of OperationTraitable
Mixes: tagNames
Kind: instance method of OperationTraitable
Mixes: hasTag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of OperationTraitable
Mixes: tag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of OperationTraitable
Mixes: hasExternalDocs
Kind: instance method of OperationTraitable
Mixes: externalDocs
Kind: instance method of OperationTraitable
Mixes: hasBindings
Kind: instance method of OperationTraitable
Mixes: bindings
Kind: instance method of OperationTraitable
Mixes: bindingProtocols
Kind: instance method of OperationTraitable
Mixes: hasBinding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of OperationTraitable
Mixes: binding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of OperationTraitable
Mixes: hasExtensions
Kind: instance method of OperationTraitable
Mixes: extensions
Kind: instance method of OperationTraitable
Mixes: extensionKeys
Kind: instance method of OperationTraitable
Mixes: extKeys
Kind: instance method of OperationTraitable
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OperationTraitable
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OperationTraitable
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of OperationTraitable
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with an Operation object.
Kind: instance class of @asyncapi/parser
Extends: OperationTraitable
- .Operation ⇐
OperationTraitable
- .hasMultipleMessages() ⇒
boolean
- .messages() ⇒
Array.<Message>
- .message() ⇒
Message
- .hasMultipleMessages() ⇒
Kind: instance method of Operation
Kind: instance method of Operation
Kind: instance method of Operation
Implements functions to deal with a PublishOperation object.
Kind: instance class of @asyncapi/parser
Extends: Operation
- .PublishOperation ⇐
Operation
- .isPublish() ⇒
boolean
- .isSubscribe() ⇒
boolean
- .kind() ⇒
string
- .isPublish() ⇒
Kind: instance method of PublishOperation
Kind: instance method of PublishOperation
Kind: instance method of PublishOperation
Implements functions to deal with a Schema object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinExternalDocs
, MixinSpecificationExtensions
- .Schema ⇐
Base
- .uid() ⇒
string
- .$id() ⇒
string
- .multipleOf() ⇒
number
- .maximum() ⇒
number
- .exclusiveMaximum() ⇒
number
- .minimum() ⇒
number
- .exclusiveMinimum() ⇒
number
- .maxLength() ⇒
number
- .minLength() ⇒
number
- .pattern() ⇒
string
- .maxItems() ⇒
number
- .minItems() ⇒
number
- .uniqueItems() ⇒
boolean
- .maxProperties() ⇒
number
- .minProperties() ⇒
number
- .required() ⇒
Array.<string>
- .enum() ⇒
Array.<any>
- .type() ⇒
string
|Array.<string>
- .allOf() ⇒
Array.<Schema>
- .oneOf() ⇒
Array.<Schema>
- .anyOf() ⇒
Array.<Schema>
- .not() ⇒
Schema
- .items() ⇒
Schema
|Array.<Schema>
- .properties() ⇒
Object.<string, Schema>
- .property(name) ⇒
Schema
- .additionalProperties() ⇒
boolean
|Schema
- .additionalItems() ⇒
Schema
- .patternProperties() ⇒
Object.<string, Schema>
- .const() ⇒
any
- .contains() ⇒
Schema
- .dependencies() ⇒
Object.<string, (Schema|Array.<string>)>
- .propertyNames() ⇒
Schema
- .if() ⇒
Schema
- .then() ⇒
Schema
- .else() ⇒
Schema
- .format() ⇒
string
- .contentEncoding() ⇒
string
- .contentMediaType() ⇒
string
- .definitions() ⇒
Object.<string, Schema>
- .title() ⇒
string
- .default() ⇒
any
- .deprecated() ⇒
boolean
- .discriminator() ⇒
string
- .readOnly() ⇒
boolean
- .writeOnly() ⇒
boolean
- .examples() ⇒
Array.<any>
- .isCircular() ⇒
boolean
- .hasCircularProps() ⇒
boolean
- .circularProps() ⇒
Array.<string>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .uid() ⇒
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Param | Type | Description |
---|---|---|
name | string |
Name of the property. |
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Kind: instance method of Schema
Mixes: hasDescription
Kind: instance method of Schema
Mixes: description
Kind: instance method of Schema
Mixes: hasExternalDocs
Kind: instance method of Schema
Mixes: externalDocs
Kind: instance method of Schema
Mixes: hasExtensions
Kind: instance method of Schema
Mixes: extensions
Kind: instance method of Schema
Mixes: extensionKeys
Kind: instance method of Schema
Mixes: extKeys
Kind: instance method of Schema
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Schema
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Schema
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Schema
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a SecurityScheme object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .SecurityScheme ⇐
Base
- .type() ⇒
string
- .name() ⇒
string
- .in() ⇒
string
- .scheme() ⇒
string
- .bearerFormat() ⇒
string
- .openIdConnectUrl() ⇒
string
- .flows() ⇒
Object.<string, OAuthFlow>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .type() ⇒
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Kind: instance method of SecurityScheme
Mixes: hasDescription
Kind: instance method of SecurityScheme
Mixes: description
Kind: instance method of SecurityScheme
Mixes: hasExtensions
Kind: instance method of SecurityScheme
Mixes: extensions
Kind: instance method of SecurityScheme
Mixes: extensionKeys
Kind: instance method of SecurityScheme
Mixes: extKeys
Kind: instance method of SecurityScheme
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of SecurityScheme
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of SecurityScheme
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of SecurityScheme
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a ServerSecurityRequirement object.
Kind: instance class of @asyncapi/parser
Extends: Base
Implements functions to deal with a ServerVariable object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinSpecificationExtensions
- .ServerVariable ⇐
Base
- .allowedValues() ⇒
Array.<any>
- .allows(name) ⇒
boolean
- .hasAllowedValues() ⇒
boolean
- .defaultValue() ⇒
string
- .hasDefaultValue() ⇒
boolean
- .examples() ⇒
Array.<string>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .allowedValues() ⇒
Kind: instance method of ServerVariable
Kind: instance method of ServerVariable
Param | Type | Description |
---|---|---|
name | string |
Name of the variable. |
Kind: instance method of ServerVariable
Kind: instance method of ServerVariable
Kind: instance method of ServerVariable
Kind: instance method of ServerVariable
Kind: instance method of ServerVariable
Mixes: hasDescription
Kind: instance method of ServerVariable
Mixes: description
Kind: instance method of ServerVariable
Mixes: hasExtensions
Kind: instance method of ServerVariable
Mixes: extensions
Kind: instance method of ServerVariable
Mixes: extensionKeys
Kind: instance method of ServerVariable
Mixes: extKeys
Kind: instance method of ServerVariable
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ServerVariable
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ServerVariable
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of ServerVariable
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a Server object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinBindings
, MixinSpecificationExtensions
- .Server ⇐
Base
- .url() ⇒
string
- .protocol() ⇒
string
- .protocolVersion() ⇒
string
- .variables() ⇒
Object.<string, ServerVariable>
- .variable(name) ⇒
ServerVariable
- .hasVariables() ⇒
boolean
- .security() ⇒
Array.<ServerSecurityRequirement>
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .url() ⇒
Kind: instance method of Server
Kind: instance method of Server
Kind: instance method of Server
Kind: instance method of Server
Kind: instance method of Server
Param | Type | Description |
---|---|---|
name | string |
Name of the server variable. |
Kind: instance method of Server
Kind: instance method of Server
Kind: instance method of Server
Mixes: hasDescription
Kind: instance method of Server
Mixes: description
Kind: instance method of Server
Mixes: hasBindings
Kind: instance method of Server
Mixes: bindings
Kind: instance method of Server
Mixes: bindingProtocols
Kind: instance method of Server
Mixes: hasBinding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of Server
Mixes: binding
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: instance method of Server
Mixes: hasExtensions
Kind: instance method of Server
Mixes: extensions
Kind: instance method of Server
Mixes: extensionKeys
Kind: instance method of Server
Mixes: extKeys
Kind: instance method of Server
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Server
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Server
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Server
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with a SubscribeOperation object.
Kind: instance class of @asyncapi/parser
Extends: Operation
- .SubscribeOperation ⇐
Operation
- .isPublish() ⇒
boolean
- .isSubscribe() ⇒
boolean
- .kind() ⇒
string
- .isPublish() ⇒
Kind: instance method of SubscribeOperation
Kind: instance method of SubscribeOperation
Kind: instance method of SubscribeOperation
Implements functions to deal with a Tag object.
Kind: instance class of @asyncapi/parser
Extends: Base
Mixes: MixinDescription
, MixinExternalDocs
, MixinSpecificationExtensions
- .Tag ⇐
Base
- .name() ⇒
string
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .name() ⇒
Kind: instance method of Tag
Kind: instance method of Tag
Mixes: hasDescription
Kind: instance method of Tag
Mixes: description
Kind: instance method of Tag
Mixes: hasExternalDocs
Kind: instance method of Tag
Mixes: externalDocs
Kind: instance method of Tag
Mixes: hasExtensions
Kind: instance method of Tag
Mixes: extensions
Kind: instance method of Tag
Mixes: extensionKeys
Kind: instance method of Tag
Mixes: extKeys
Kind: instance method of Tag
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Tag
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Tag
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of Tag
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Callback used when crawling a schema.
Kind: static typedef of @asyncapi/parser
Returns: boolean
- should the crawler continue crawling the schema?
Param | Type | Description |
---|---|---|
schema | Schema |
which is being crawled |
propName | String |
if the schema is from a property get the name of such |
callbackType | SchemaIteratorCallbackType |
is the schema a new one or is the crawler finishing one. |
Represents an error while trying to parse an AsyncAPI document.
Kind: inner class of @asyncapi/parser
Extends: Error
Instantiates an error
Param | Type | Description |
---|---|---|
definition | Object |
|
definition.type | String |
The type of the error. |
definition.title | String |
The message of the error. |
[definition.detail] | String |
A string containing more detailed information about the error. |
[definition.parsedJSON] | Object |
The resulting JSON after YAML transformation. Or the JSON object if the this was the initial format. |
[definition.validationErrors] | Array.<Object> |
The errors resulting from the validation. For more information, see https://www.npmjs.com/package/better-ajv-errors. |
definition.validationErrors.title | String |
A validation error message. |
definition.validationErrors.jsonPointer | String |
The path to the field that contains the error. Uses JSON Pointer format. |
definition.validationErrors.startLine | Number |
The line where the error starts in the AsyncAPI document. |
definition.validationErrors.startColumn | Number |
The column where the error starts in the AsyncAPI document. |
definition.validationErrors.startOffset | Number |
The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. |
definition.validationErrors.endLine | Number |
The line where the error ends in the AsyncAPI document. |
definition.validationErrors.endColumn | Number |
The column where the error ends in the AsyncAPI document. |
definition.validationErrors.endOffset | Number |
The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. |
[definition.location] | Object |
Error location details after trying to parse an invalid JSON or YAML document. |
definition.location.startLine | Number |
The line of the YAML/JSON document where the error starts. |
definition.location.startColumn | Number |
The column of the YAML/JSON document where the error starts. |
definition.location.startOffset | Number |
The offset (starting from the beginning of the document) where the error starts in the YAML/JSON AsyncAPI document. |
[definition.refs] | Array.<Object> |
Error details after trying to resolve $ref's. |
definition.refs.title | String |
A validation error message. |
definition.refs.jsonPointer | String |
The path to the field that contains the error. Uses JSON Pointer format. |
definition.refs.startLine | Number |
The line where the error starts in the AsyncAPI document. |
definition.refs.startColumn | Number |
The column where the error starts in the AsyncAPI document. |
definition.refs.startOffset | Number |
The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. |
definition.refs.endLine | Number |
The line where the error ends in the AsyncAPI document. |
definition.refs.endColumn | Number |
The column where the error ends in the AsyncAPI document. |
definition.refs.endOffset | Number |
The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. |
Returns a JS object representation of the error.
Kind: instance method of ParserError
Implements functions to deal with the AsyncAPI document.
Kind: inner class of @asyncapi/parser
Extends: Base
Mixes: MixinTags
, MixinExternalDocs
, MixinSpecificationExtensions
- ~AsyncAPIDocument ⇐
Base
- .version() ⇒
string
- .info() ⇒
Info
- .id() ⇒
string
- .hasServers() ⇒
boolean
- .servers() ⇒
Object.<string, Server>
- .serverNames() ⇒
Array.<string>
- .server(name) ⇒
Server
- .hasDefaultContentType() ⇒
boolean
- .defaultContentType() ⇒
string
|null
- .hasChannels() ⇒
boolean
- .channels() ⇒
Object.<string, Channel>
- .channelNames() ⇒
Array.<string>
- .channel(name) ⇒
Channel
- .hasComponents() ⇒
boolean
- .components() ⇒
Components
- .hasMessages() ⇒
boolean
- .allMessages() ⇒
Map.<string, Message>
- .allSchemas() ⇒
Map.<string, Schema>
- .hasCircular() ⇒
boolean
- .traverseSchemas(callback, schemaTypesToIterate)
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .version() ⇒
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Param | Type | Description |
---|---|---|
name | string |
Name of the server. |
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Param | Type | Description |
---|---|---|
name | string |
Name of the channel. |
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Kind: instance method of AsyncAPIDocument
Traverse schemas in the document and select which types of schemas to include. By default all schemas are iterated
Kind: instance method of AsyncAPIDocument
Param | Type |
---|---|
callback | TraverseSchemas |
schemaTypesToIterate | Array.<SchemaTypesToIterate> |
Kind: instance method of AsyncAPIDocument
Mixes: hasTags
Kind: instance method of AsyncAPIDocument
Mixes: tags
Kind: instance method of AsyncAPIDocument
Mixes: tagNames
Kind: instance method of AsyncAPIDocument
Mixes: hasTag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of AsyncAPIDocument
Mixes: tag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of AsyncAPIDocument
Mixes: hasExternalDocs
Kind: instance method of AsyncAPIDocument
Mixes: externalDocs
Kind: instance method of AsyncAPIDocument
Mixes: hasExtensions
Kind: instance method of AsyncAPIDocument
Mixes: extensions
Kind: instance method of AsyncAPIDocument
Mixes: extensionKeys
Kind: instance method of AsyncAPIDocument
Mixes: extKeys
Kind: instance method of AsyncAPIDocument
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: hasTags
Kind: instance method of AsyncAPIDocument
Mixes: tags
Kind: instance method of AsyncAPIDocument
Mixes: tagNames
Kind: instance method of AsyncAPIDocument
Mixes: hasTag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of AsyncAPIDocument
Mixes: tag
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: instance method of AsyncAPIDocument
Mixes: hasExternalDocs
Kind: instance method of AsyncAPIDocument
Mixes: externalDocs
Kind: instance method of AsyncAPIDocument
Mixes: hasExtensions
Kind: instance method of AsyncAPIDocument
Mixes: extensions
Kind: instance method of AsyncAPIDocument
Mixes: extensionKeys
Kind: instance method of AsyncAPIDocument
Mixes: extKeys
Kind: instance method of AsyncAPIDocument
Mixes: hasExtension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: extension
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: hasExt
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: instance method of AsyncAPIDocument
Mixes: ext
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements common functionality for all the models.
Kind: inner class of @asyncapi/parser
Kind: instance method of Base
Parses and validate an AsyncAPI document from YAML or JSON.
Kind: inner method of @asyncapi/parser
Returns: Promise.<AsyncAPIDocument>
- The parsed AsyncAPI document.
Param | Type | Default | Description |
---|---|---|---|
asyncapiYAMLorJSON | String |
An AsyncAPI document in JSON or YAML format. | |
[options] | Object |
Configuration options. | |
[options.path] | String |
Path to the AsyncAPI document. It will be used to resolve relative references. Defaults to current working dir. | |
[options.parse] | Object |
Options object to pass to json-schema-ref-parser. | |
[options.resolve] | Object |
Options object to pass to json-schema-ref-parser. | |
[options.applyTraits] | Object |
true |
Whether to resolve and apply traits or not. |
Fetches an AsyncAPI document from the given URL and passes its content to the parse
method.
Kind: inner method of @asyncapi/parser
Returns: Promise.<AsyncAPIDocument>
- The parsed AsyncAPI document.
Param | Type | Description |
---|---|---|
url | String |
URL where the AsyncAPI document is located. |
[fetchOptions] | Object |
Configuration to pass to the fetch call. |
[options] | Object |
Configuration to pass to the module:Parser#parse method. |
Registers a new schema parser. Schema parsers are in charge of parsing and transforming payloads to AsyncAPI Schema format.
Kind: inner method of @asyncapi/parser
Param | Type | Description |
---|---|---|
parserModule | Object |
The schema parser module containing parse() and getMimeTypes() functions. |
Implements functions to deal with the common Bindings object.
Kind: global mixin
- MixinBindings
- .hasBindings() ⇒
boolean
- .bindings() ⇒
Object
- .bindingProtocols() ⇒
Array.<string>
- .hasBinding(name) ⇒
boolean
- .binding(name) ⇒
Object
|null
- .hasBindings() ⇒
Kind: static method of MixinBindings
Kind: static method of MixinBindings
Kind: static method of MixinBindings
Kind: static method of MixinBindings
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Kind: static method of MixinBindings
Param | Type | Description |
---|---|---|
name | string |
Name of the binding. |
Implements functions to deal with the description field.
Kind: global mixin
- MixinDescription
- .hasDescription() ⇒
boolean
- .description() ⇒
string
|null
- .hasDescription() ⇒
Kind: static method of MixinDescription
Kind: static method of MixinDescription
Implements functions to deal with the ExternalDocs object.
Kind: global mixin
- MixinExternalDocs
- .hasExternalDocs() ⇒
boolean
- .externalDocs() ⇒
ExternalDocs
|null
- .hasExternalDocs() ⇒
Kind: static method of MixinExternalDocs
Kind: static method of MixinExternalDocs
Implements functions to deal with the SpecificationExtensions object.
Kind: global mixin
- MixinSpecificationExtensions
- .hasExtensions() ⇒
boolean
- .extensions() ⇒
Object.<string, any>
- .extensionKeys() ⇒
Array.<string>
- .extKeys() ⇒
Array.<string>
- .hasExtension(key) ⇒
boolean
- .extension(key) ⇒
any
- .hasExt(key) ⇒
boolean
- .ext(key) ⇒
any
- .hasExtensions() ⇒
Kind: static method of MixinSpecificationExtensions
Kind: static method of MixinSpecificationExtensions
Kind: static method of MixinSpecificationExtensions
Kind: static method of MixinSpecificationExtensions
Kind: static method of MixinSpecificationExtensions
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: static method of MixinSpecificationExtensions
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: static method of MixinSpecificationExtensions
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Kind: static method of MixinSpecificationExtensions
Param | Type | Description |
---|---|---|
key | string |
Extension key. |
Implements functions to deal with the Tags object.
Kind: global mixin
- MixinTags
- .hasTags() ⇒
boolean
- .tags() ⇒
Array.<Tag>
- .tagNames() ⇒
Array.<string>
- .hasTag(name) ⇒
boolean
- .tag(name) ⇒
Tag
|null
- .hasTags() ⇒
Kind: static method of MixinTags
Kind: static method of MixinTags
Kind: static method of MixinTags
Kind: static method of MixinTags
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
Kind: static method of MixinTags
Param | Type | Description |
---|---|---|
name | string |
Name of the tag. |
The different kind of stages when crawling a schema.
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
NEW_SCHEMA | string |
The crawler just started crawling a schema. |
END_SCHEMA | string |
The crawler just finished crawling a schema. |
The different types of schemas you can iterate
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
parameters | string |
Crawl all schemas in parameters |
payloads | string |
Crawl all schemas in payloads |
headers | string |
Crawl all schemas in headers |
components | string |
Crawl all schemas in components |
objects | string |
Crawl all schemas of type object |
arrays | string |
Crawl all schemas of type array |
oneOfs | string |
Crawl all schemas in oneOf's |
allOfs | string |
Crawl all schemas in allOf's |
anyOfs | string |
Crawl all schemas in anyOf's |