{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openmedici-com/json-schema/openmedici-com-cycle-list-response-schema.json",
  "title": "CycleListResponse",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/openmedici-com-v1-openapi.json#/components/schemas/CycleListResponse",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "cycle",
          "program"
        ],
        "properties": {
          "cycle": {
            "$ref": "#/$defs/Cycle"
          },
          "program": {
            "type": "object",
            "required": [
              "slug",
              "name"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "meta": {
      "$ref": "#/$defs/ListMeta"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Cycle": {
      "type": "object",
      "required": [
        "id",
        "programId",
        "label",
        "opensOn",
        "deadlineOn",
        "selectionOn",
        "decisionOn",
        "startsOn",
        "endsOn",
        "cohortYear",
        "applicationUrl",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "programId": {
          "type": "string",
          "format": "uuid"
        },
        "label": {
          "type": "string"
        },
        "opensOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "deadlineOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "selectionOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "decisionOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "startsOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "endsOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "cohortYear": {
          "type": [
            "integer",
            "null"
          ]
        },
        "applicationUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "status": {
          "type": "string",
          "enum": [
            "unknown",
            "upcoming",
            "open",
            "closed",
            "rolling"
          ]
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Source"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "ListMeta": {
      "type": "object",
      "required": [
        "limit",
        "offset",
        "count"
      ],
      "properties": {
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "count": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "Source": {
      "type": "object",
      "required": [
        "id",
        "entityType",
        "entityId",
        "kind",
        "url",
        "title",
        "publisher",
        "publishedOn",
        "retrievedAt",
        "sourceCheckedAt",
        "createdAt",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "entityType": {
          "type": "string"
        },
        "entityId": {
          "type": "string",
          "format": "uuid"
        },
        "kind": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "publisher": {
          "type": [
            "string",
            "null"
          ]
        },
        "publishedOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "retrievedAt": {
          "type": "string",
          "format": "date-time"
        },
        "sourceCheckedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    }
  }
}