Last updated

asyncapi

Customize the behavior and appearance of AsyncAPI documentation. Requires an AsyncAPI definition.

Options

OptionTypeDescription
schemaIdStringSchema ID. Defaults to asyncapi.
hideInfoBooleanSet to true to hide info section including API title.
hideOperationsBooleanSet to true to hide Operations section
hideServersBooleanSet to true to hide Servers section
hideMessagesBooleanSet to true to hide Messages section
hideSchemasBooleanSet to true to hide Schemas section

Examples

Change default schema id and hide servers section

plugins:
  # Enable plugin in project
  - '@redocly/portal-plugin-async-api/plugin.js'
asyncapi:
  schemaId: StreetlightAPI
  hideServers: true

Change default schema id and show all the sections except schemas section

plugins:
  # Enable plugin in project
  - '@redocly/portal-plugin-async-api/plugin.js'
asyncapi:
  schemaId: StreetlightAPI
  hideErrors: false
  hideInfo: false
  hideOperations: false
  hideServers: false
  hideMessages: false
  hideSchemas: true

Resources