diff --git a/README.md b/README.md index 3cd89b6..055b69f 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,15 @@ In the European Union, this extension's fields correspond to [eForms BT-01 (Proc ```json { "tender": { - "crossBorderLaw": "Italian procurement legislation", + "crossBorderLaw": "UK procurement legislation", "legalBasis": { - "id": "32014L0025", - "scheme": "CELEX" + "id": "https://www.legislation.gov.uk/id/uksi/2015/102", + "scheme": "ELI", + "wasDerivedFrom": { + "id": "32014L0024", + "scheme": "CELEX", + "uri": "https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32011R1007" + } } } } diff --git a/release-schema.json b/release-schema.json index 4fcd619..c20d2a7 100644 --- a/release-schema.json +++ b/release-schema.json @@ -14,7 +14,45 @@ "legalBasis": { "title": "Legal basis", "description": "The legal basis of the procedure.", - "$ref": "#/definitions/Classification" + "type": "object", + "properties": { + "scheme": { + "title": "Scheme", + "description": "The scheme or codelist from which the legislation code is taken.", + "type": [ + "string", + "null" + ], + "codelist": "+itemClassificationScheme.csv", + "openCodelist": true, + "minLength": 1 + }, + "id": { + "title": "ID", + "description": "The legislation code taken from the scheme.", + "type": [ + "string", + "integer", + "null" + ], + "minLength": 1 + }, + "uri": { + "title": "URI", + "description": "A URI to uniquely identify the legislation.", + "type": [ + "string", + "null" + ], + "format": "uri" + }, + "wasDerivedFrom": { + "title": "Was derived from", + "description": "The directive the legislation was derived from.", + "$ref": "#/definitions/Classification" + } + }, + "minProperties": 1 } } }