From e8421ec6e6cb212718b30ab8745cdac43b737f5e Mon Sep 17 00:00:00 2001 From: Alex Saunders Date: Wed, 5 Jun 2024 16:32:03 +0100 Subject: [PATCH 1/2] use URLs for $refs --- docs/openapi/openapi.yaml | 4 ++-- docs/schemas/2024-10/lpa.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/openapi/openapi.yaml b/docs/openapi/openapi.yaml index 4f157635..f992000a 100644 --- a/docs/openapi/openapi.yaml +++ b/docs/openapi/openapi.yaml @@ -251,9 +251,9 @@ components: items: $ref: "#/components/schemas/Lpa" Lpa: - $ref: "../schemas/2024-10/lpa.json" + $ref: "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/lpa.json" DonorDetails: - $ref: "../schemas/2024-10/donor-details.json" + $ref: "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/donor-details.json" Update: type: object required: diff --git a/docs/schemas/2024-10/lpa.json b/docs/schemas/2024-10/lpa.json index 9094ef60..5c0bb0f2 100644 --- a/docs/schemas/2024-10/lpa.json +++ b/docs/schemas/2024-10/lpa.json @@ -4,7 +4,7 @@ "description": "A lasting power of attorney document", "allOf": [ { - "$ref": "./donor-details.json" + "$ref": "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/donor-details.json" } ], "type": "object", From cda6cab90b8d4cb1861d7ab98fe7f70b9651f67f Mon Sep 17 00:00:00 2001 From: Alex Saunders Date: Thu, 6 Jun 2024 10:47:13 +0100 Subject: [PATCH 2/2] prefer data-dictionary --- docs/openapi/openapi.yaml | 4 ++-- docs/schemas/2024-10/lpa.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/openapi/openapi.yaml b/docs/openapi/openapi.yaml index f992000a..07c04219 100644 --- a/docs/openapi/openapi.yaml +++ b/docs/openapi/openapi.yaml @@ -251,9 +251,9 @@ components: items: $ref: "#/components/schemas/Lpa" Lpa: - $ref: "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/lpa.json" + $ref: "https://data-dictionary.opg.service.justice.gov.uk/schema/lpa/2024-10/lpa.json" DonorDetails: - $ref: "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/donor-details.json" + $ref: "https://data-dictionary.opg.service.justice.gov.uk/schema/lpa/2024-10/donor-details.json" Update: type: object required: diff --git a/docs/schemas/2024-10/lpa.json b/docs/schemas/2024-10/lpa.json index 5c0bb0f2..295b30ed 100644 --- a/docs/schemas/2024-10/lpa.json +++ b/docs/schemas/2024-10/lpa.json @@ -4,7 +4,7 @@ "description": "A lasting power of attorney document", "allOf": [ { - "$ref": "https://github.com/ministryofjustice/opg-data-lpa-store/raw/main/docs/schemas/2024-10/donor-details.json" + "$ref": "https://data-dictionary.opg.service.justice.gov.uk/schema/lpa/2024-10/donor-details.json" } ], "type": "object",