{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tenderapi-fr/json-schema/tenderapi-fr-award-out-schema.json",
  "title": "AwardOut",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tenderapi-fr-openapi.json#/components/schemas/AwardOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "tender_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tender Id"
    },
    "source": {
      "type": "string",
      "title": "Source"
    },
    "source_id": {
      "type": "string",
      "title": "Source Id"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "winner_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winner Name"
    },
    "winner_siret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winner Siret"
    },
    "winner_country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winner Country"
    },
    "amount": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Amount"
    },
    "currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Currency"
    },
    "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": []
    },
    "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"
    },
    "buyer_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer Name"
    },
    "buyer_siret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Buyer Siret"
    },
    "awarded_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Awarded At"
    },
    "awarded_at_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Awarded At Source"
    },
    "outcome": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Outcome"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Published At"
    },
    "relevance_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Relevance Score"
    },
    "has_parent_tender": {
      "type": "boolean",
      "title": "Has Parent Tender",
      "description": "True when this award is linked to its originating tender (AO).\nFalse for standalone awards: negotiated/direct procedures with no\npublished prior contract notice. This is normal in public procurement,\nnot a data gap: a large share of awards never had a separate tender.",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "id",
    "tender_id",
    "source",
    "source_id",
    "source_url",
    "winner_name",
    "winner_siret",
    "winner_country",
    "amount",
    "currency",
    "cpv_codes",
    "cpv_family",
    "region",
    "department",
    "nuts_code",
    "country",
    "buyer_name",
    "buyer_siret",
    "awarded_at",
    "published_at",
    "has_parent_tender"
  ]
}