FAQ

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

    post-response-success


    Formats: Severity:

    Make sure that every POST operation has a successful response code (2XX or 3XX).

    Why did this violation appear?

    A POST operation in your specification does not have a successful response code defined.

    Bad example

    paths:
      /snakes/cakes:
        post:
          description: "No response codes defined";
    

    How do I fix this violation?

    Ensure that every POST operation has a successful response code (2XX or 3XX).