openapi: "3.0.3"
info:
  title: "API token fixture"
  version: "1.0.0"
  description: "The expires_in constraint rejects zero, so the two tools produce different insert counts. The foreign key is the second difference: only the schema-driven tool reuses a real client id. A mock server comparison on this fixture comes down to whether the response body can be produced without a database. The scope column is free text, so both tools agree on it and the comparison does not pretend otherwise."
paths: {}
x-domain-id: "cmp_sessions"
x-dialect: "postgres"
components:
  schemas:
    clients:
      type: "object"
      x-primary-key: "id"
      required: ["id", "name"]
      properties:
        id:
          type: "string"
          format: "uuid"
        name:
          type: "string"
          x-unique: true
    tokens:
      type: "object"
      x-primary-key: "id"
      required: ["id", "client_id", "scope", "expires_in"]
      properties:
        id:
          type: "string"
          format: "uuid"
        client_id:
          $ref: "#/components/schemas/clients"
        scope:
          type: "string"
        expires_in:
          type: "integer"
          minimum: 1
