{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tender-agents-com/json-schema/tender-agents-com-tender-schema.json",
  "title": "Tender",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tender-agents-com-openapi.json#/components/schemas/Tender",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "source_url": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "buyer_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "buyer_country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-3"
    },
    "cpv_main": {
      "type": [
        "string",
        "null"
      ]
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "deadline_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "estimated_value_eur": {
      "type": [
        "number",
        "null"
      ]
    },
    "verticals": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "relevance_score": {
      "type": [
        "integer",
        "null"
      ]
    },
    "summary": {
      "type": [
        "object",
        "null"
      ],
      "description": "Cached AI summary in the requested summary_lang ({title, summary, label, model, generated_at}); null unless requested and available."
    }
  }
}