FAQ

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

    asyncapi-3-server-not-example-com


    Formats: Severity:

    asyncapi-3-server-not-example-com catches placeholder server hosts that still point at example.com.

    Why did this violation appear?

    A server host contains example.com.

    Bad example

    asyncapi: 3.1.0
    servers:
      production:
        host: example.com
        protocol: mqtt
    

    Good example

    asyncapi: 3.1.0
    servers:
      production:
        host: events.acme.com
        protocol: mqtt
    

    How do I fix this violation?

    Replace placeholder hosts with a real development, staging, or production host before publishing the contract.