From cf37e02ea23afda2a55ab3c034c7128d5d91b6cd Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Tue, 24 Sep 2024 16:33:22 -0400 Subject: [PATCH] openapi: Fixed external reference in contact.yaml --- .../openapi/ogcapi-common-2.bundled.json | 33 ++----------------- .../openapi/schemas/records-core/contact.yaml | 4 +-- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/collections/openapi/ogcapi-common-2.bundled.json b/collections/openapi/ogcapi-common-2.bundled.json index 6e5da19..bb466e6 100644 --- a/collections/openapi/ogcapi-common-2.bundled.json +++ b/collections/openapi/ogcapi-common-2.bundled.json @@ -462,36 +462,7 @@ "description": "Graphic identifying a contact. The link relation should be `icon` and the media type should be an image media type.", "allOf": [ { - "type": "object", - "required": [ - "href", - "rel" - ], - "properties": { - "href": { - "type": "string", - "example": "http://data.example.com/buildings/123" - }, - "rel": { - "type": "string", - "example": "alternate" - }, - "type": { - "type": "string", - "example": "application/geo+json" - }, - "hreflang": { - "type": "string", - "example": "en" - }, - "title": { - "type": "string", - "example": "Trierer Strasse 70, 53115 Bonn" - }, - "length": { - "type": "integer" - } - } + "$ref": "#/components/schemas/link" }, { "type": "object", @@ -594,7 +565,7 @@ "items": { "allOf": [ { - "$ref": "#/paths/~1collections/get/responses/200/content/application~1json/schema/properties/collections/items/allOf/0/properties/contacts/items/properties/logo/allOf/0" + "$ref": "#/components/schemas/link" }, { "type": "object", diff --git a/collections/openapi/schemas/records-core/contact.yaml b/collections/openapi/schemas/records-core/contact.yaml index d9c3c47..88431a5 100644 --- a/collections/openapi/schemas/records-core/contact.yaml +++ b/collections/openapi/schemas/records-core/contact.yaml @@ -31,7 +31,7 @@ properties: Graphic identifying a contact. The link relation should be `icon` and the media type should be an image media type. allOf: - - $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/link.yaml' + - $ref: '../common-core/link.yaml' - type: object required: - rel @@ -105,7 +105,7 @@ properties: description: On-line information about the contact. items: allOf: - - $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/link.yaml' + - $ref: '../common-core/link.yaml' - type: object required: - type