FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor
    Recommended

    asyncapi-3-channel-no-trailing-slash


    Formats: Severity:

    asyncapi-3-channel-no-trailing-slash prevents duplicate channel shapes that differ only by a final /.

    Why did this violation appear?

    A channel address ends with /.

    Bad example

    asyncapi: 3.1.0
    channels:
      userEvents:
        address: users/{userId}/events/
    

    Good example

    asyncapi: 3.1.0
    channels:
      userEvents:
        address: users/{userId}/events
    

    How do I fix this violation?

    Remove the final slash unless your protocol requires it and you have intentionally disabled this rule.