{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-fr/json-schema/tenderapi-fr-tender-out-schema.json",
  "title": "TenderOut",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-fr-openapi.json#/components/schemas/TenderOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "source_id": {
      "type": "string",
      "title": "Source Id"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "cpv_codes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Cpv Codes"
    },
    "cpv_family": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Cpv Family"
    },
    "descripteur_codes": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Descripteur Codes",
      "default": []
    },
    "descripteur_libelles": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Descripteur Libelles",
      "default": []
    },
    "procedure_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Procedure Type"
    },
    "contract_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contract Type"
    },
    "buyer_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer Name"
    },
    "buyer_siret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer Siret"
    },
    "buyer_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer Country"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region"
    },
    "department": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Department"
    },
    "nuts_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nuts Code"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "budget_min": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Min"
    },
    "budget_max": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Max"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Published At"
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deadline"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "lot_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lot Count"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "relevance_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Relevance Score"
    }
  },
  "type": "object",
  "required": [
    "id",
    "source",
    "source_id",
    "source_url",
    "title",
    "description",
    "cpv_codes",
    "cpv_family",
    "procedure_type",
    "contract_type",
    "buyer_name",
    "buyer_siret",
    "buyer_country",
    "region",
    "department",
    "nuts_code",
    "country",
    "budget_min",
    "budget_max",
    "currency",
    "published_at",
    "deadline",
    "status",
    "lot_count",
    "updated_at"
  ]
}