{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-eu/json-schema/tenderapi-eu-tender-list-schema.json",
  "title": "TenderList",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-eu-openapi.yaml#/components/schemas/TenderList",
  "type": "object",
  "properties": {
    "tenders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TenderDetail"
      }
    },
    "page": {
      "$ref": "#/$defs/PageInfo"
    }
  },
  "required": [
    "tenders",
    "page"
  ],
  "$defs": {
    "EstimatedValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "valueEur": {
          "type": "number"
        }
      },
      "required": [
        "value",
        "currency",
        "valueEur"
      ]
    },
    "Organisation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "country"
      ]
    },
    "PageInfo": {
      "type": "object",
      "properties": {
        "nextCursor": {
          "type": "string"
        },
        "total": {
          "type": "object",
          "properties": {
            "count": {
              "type": "integer"
            },
            "capped": {
              "type": "boolean"
            }
          },
          "required": [
            "count",
            "capped"
          ]
        }
      },
      "required": [
        "nextCursor",
        "total"
      ]
    },
    "TenderDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "abstract": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "serviceType": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "publicationDate": {
          "type": "string"
        },
        "deadline": {
          "type": "string"
        },
        "deadlineHasTime": {
          "type": "boolean"
        },
        "buyer": {
          "$ref": "#/$defs/Organisation"
        },
        "cpvCodes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "estimatedValue": {
          "$ref": "#/$defs/EstimatedValue"
        },
        "link": {
          "type": "string"
        },
        "winners": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Organisation"
          }
        }
      },
      "required": [
        "id",
        "title",
        "status",
        "serviceType",
        "source",
        "publicationDate",
        "deadline",
        "deadlineHasTime",
        "buyer",
        "cpvCodes",
        "estimatedValue",
        "link"
      ]
    }
  }
}