FAQ

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

    oas2-schema


    Formats: Severity:

    Perhaps the ’lightest’ linting there is. This rule ensures that the document provided, matches the schema of a Swagger (OpenAPI 2.0) document.

    The rule performs a schema match using JSON Schema

    Click to see schema used to match against.

    Why did this violation appear?

    The spec provided is not a valid OpenAPI 2 specification.

    How do I fix this violation?

    Correct the specification violations, there isn’t any other way forward otherwise.

    Spectral Equivalent

    The rule is equivalent to oas2-schema