openapi: "3.0.3"
info:
  title: "Rate limit configuration API"
  version: "1.0.0"
  description: "Every numeric column here has a boundary, which is what makes this fixture the boundary-test case. The burst column allows zero while max_requests does not, so the two constraints behave differently at the low end. The window_seconds constraint rejects a zero-length window, which is otherwise a plausible-looking value. One table with four constrained numerics is enough to generate a full boundary matrix."
paths: {}
x-domain-id: "prob_limits"
x-dialect: "postgres"
components:
  schemas:
    plans:
      type: "object"
      x-primary-key: "id"
      required: ["id", "name", "max_requests", "window_seconds", "burst"]
      properties:
        id:
          type: "string"
          format: "uuid"
        name:
          type: "string"
          x-unique: true
        max_requests:
          type: "integer"
          minimum: 1
        window_seconds:
          type: "integer"
          minimum: 1
        burst:
          type: "integer"
          minimum: 0
