{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fwozen-com/json-schema/fwozen-com-repo-schema.json",
  "title": "Repo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fwozen-com-repositories-api-openapi.yml#/components/schemas/Repo",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^repo_[1-9A-HJ-NP-Za-km-z]{16}$"
    },
    "githubRepoId": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "installationId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^ins_[1-9A-HJ-NP-Za-km-z]{16}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "accountLogin": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "owner": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "fullName": {
      "type": "string"
    },
    "private": {
      "type": "boolean"
    },
    "archived": {
      "type": "boolean"
    },
    "defaultBranch": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "enabledAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "iacManaged": {
      "type": "boolean"
    },
    "billable": {
      "type": "boolean"
    },
    "openPrCount": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "watchedBranches": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^wbr_[1-9A-HJ-NP-Za-km-z]{16}$"
          },
          "branch": {
            "type": "string"
          },
          "frozen": {
            "type": "boolean"
          },
          "enforcement": {
            "type": "string",
            "enum": [
              "green",
              "yellow",
              "red",
              "unknown"
            ]
          },
          "enforcementStatus": {
            "type": "string",
            "enum": [
              "enforcing",
              "enrolled_not_enforcing",
              "unknown"
            ]
          },
          "freezeMethod": {
            "type": "string",
            "enum": [
              "check_run",
              "commit_status"
            ]
          }
        },
        "required": [
          "id",
          "branch",
          "frozen",
          "enforcement",
          "enforcementStatus",
          "freezeMethod"
        ],
        "additionalProperties": false
      }
    },
    "htmlUrl": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "id",
    "githubRepoId",
    "installationId",
    "accountLogin",
    "owner",
    "name",
    "fullName",
    "private",
    "archived",
    "defaultBranch",
    "enabled",
    "enabledAt",
    "iacManaged",
    "billable",
    "openPrCount",
    "watchedBranches",
    "htmlUrl"
  ],
  "additionalProperties": false
}