FAQ

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

    owasp-integer-format


    Formats: Severity:

    Schema of type integer must specify format of int32 or int64.

    Bad example

    openapi: "3.1.0"
    info:
      version: "1.0"
    components:
      schemas:
        Foo:
          type: integer
    

    Good Example

    openapi: "3.1.0"
    info:
      version: "1.0"
    components:
      schemas:
        Foo:
          type: integer
          format: int64
    

    How do I fix this violation?

    Make sure all integer schemas have a format of int32 or int64.