openapi: "3.0.3"
info:
  title: "Lint gate fixture"
  version: "1.0.0"
  description: "The rule_failures counter is non-negative and is the field the CI gate reads. A spec with zero failures still produces a row, which is what makes the gate able to tell \"not linted\" from \"linted clean\". The spec name is unique so that a re-lint updates rather than duplicates. The linted_at timestamp gives the freshness line on the page something real to report."
paths: {}
x-domain-id: "tut_lint"
x-dialect: "postgres"
components:
  schemas:
    specs:
      type: "object"
      x-primary-key: "id"
      required: ["id", "name", "version", "rule_failures", "linted_at"]
      properties:
        id:
          type: "string"
          format: "uuid"
        name:
          type: "string"
          x-unique: true
        version:
          type: "string"
        rule_failures:
          type: "integer"
          minimum: 0
        linted_at:
          type: "string"
          format: "date-time"
