AsyncApi mark channel as deprecated

Viewed 23

I am currently working on my API documentation with AsyncApi. I couldn't find an example of marking a channel as deprecated, does anyone know how to do that? I tried it as follow, but there is no visible sign that the channel is deprecated when accessing the api.

channels:
  queuing.XXX:
    description: >
      ....
    publish:
      message:
        oneOf:
          - name: XXX
            description: >
              ...
            deprecated: true
            payload:
              $ref: '#/components/schemas/XXX'
...
2 Answers

There is no way to specify a deprecated channel in AsyncAPI using some special property.

Please join the related discussion in the AsyncAPI spec repository -> https://github.com/asyncapi/spec/issues/305 and share your opinion on proposed solutions

For now, we only heard opinions from people that are related to maintenance of different specifications like AsyncAPI, OpenAPI, and JSON Schema, but not much info from users that need it.

Related