openapi: "3.0.3"
info:
  title: "Multi-tool comparison fixture"
  version: "1.0.0"
  description: "The status_code range check is unusual enough that most tools ignore it, which makes it a good probe. The body column is json, so a tool that emits a string body produces a JSON string where an object belongs. The method enum has four members and the auth flag is an integer constrained to zero or one. This fixture is used by the roundup page to give every tool the same input."
paths: {}
x-domain-id: "cmp_roundup"
x-dialect: "postgres"
components:
  schemas:
    endpoints:
      type: "object"
      x-primary-key: "id"
      required: ["id", "method", "path", "auth"]
      properties:
        id:
          type: "string"
          format: "uuid"
        method:
          type: "string"
          enum: ["get", "post", "put", "delete"]
        path:
          type: "string"
        auth:
          type: "integer"
          minimum: 0
          maximum: 1
    responses:
      type: "object"
      x-primary-key: "id"
      required: ["id", "endpoint_id", "status_code", "body"]
      properties:
        id:
          type: "string"
          format: "uuid"
        endpoint_id:
          $ref: "#/components/schemas/endpoints"
        status_code:
          type: "integer"
          minimum: 100
          maximum: 599
        body:
          type: "object"
