openapi: "3.0.3"
info:
  title: "Claims fixture for schema-vs-host comparison"
  version: "1.0.0"
  description: "The amount constraint is strictly positive, so a zero-value claim is an invalid instance. The category enum has three members and the hosted tool lets you configure extra members that the schema does not declare. The policy reference is unique, so the two tools differ in row count once collisions are handled. The single-table shape keeps the comparison about the tool rather than about the schema."
paths: {}
x-domain-id: "cmp_claims"
x-dialect: "postgres"
components:
  schemas:
    claims:
      type: "object"
      x-primary-key: "id"
      required: ["id", "policy_ref", "amount_cents", "category", "filed_at"]
      properties:
        id:
          type: "string"
          format: "uuid"
        policy_ref:
          type: "string"
          x-unique: true
        amount_cents:
          type: "integer"
          minimum: 1
        category:
          type: "string"
          enum: ["auto", "home", "travel"]
        filed_at:
          type: "string"
          format: "date-time"
