{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-eu/json-schema/tenderapi-eu-tender-detail-schema.json",
  "title": "TenderDetail",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-eu-openapi.yaml#/components/schemas/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"
  ],
  "$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"
      ]
    }
  }
}