{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"tender.schema.json","title":"Public tender","type":"object","required":["id","title","buyer_country","deadline","notice_url","source_id","source_url","retrieved_at","verification","paid_placement"],"additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^\\d+-\\d{4}$","description":"TED publication number"},"title":{"type":"string"},"buyer_name":{"type":["string","null"]},"buyer_country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"buyer_city":{"type":["string","null"]},"cpv_codes":{"type":"array","items":{"type":"string","pattern":"^\\d{8}$"}},"contract_nature":{"type":["string","null"]},"procedure_type":{"type":["string","null"]},"notice_type":{"type":["string","null"]},"published":{"type":["string","null"],"format":"date"},"deadline":{"type":"string","format":"date","description":"Earliest tender receipt deadline across lots"},"estimated_value":{"type":["number","null"]},"currency":{"type":["string","null"]},"place_of_performance":{"type":"array","items":{"type":"string"}},"notice_url":{"type":"string","format":"uri"},"verification":{"enum":["official-publication"]},"paid_placement":{"const":false},"source_id":{"type":"string"},"source_url":{"type":"string","format":"uri"},"retrieved_at":{"type":"string","format":"date-time"}}}