Skip to content

Commit 25c8881

Browse files
committed
Remove the use of old media types that are no longer valid.
1 parent fe74a4c commit 25c8881

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

core/standard/abstract_tests/building-blocks/record-core/ATS_default-mediatype.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test-method::
2424
. Construct a path for a given catalog record.
2525
. Issue a HTTP GET request on that path.
2626
. Check if the <<rc_json,JSON conformance class>> is advertised for the catalog.
27-
. If yes, then check that the media type for content is `application/geo+json; application=ogc-record`.
27+
. If yes, then check that the media type for content is `application/geo+json` and the record content contains a link (href="http://www.opengis.net/def/profile/OGC/0/ogc-record", rel="profile") in the "links" section.
2828
. If no, then check that the media type for content is HTML.
2929
--
30-
====
30+
====

core/standard/abstract_tests/building-blocks/records-api/ATS_record-response.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ test-method::
2727
+
2828
--
2929
. Construct a path (`/collections/{catalogId}/items/{recordId}`) to retrieve records from a catalog.
30-
. Issue an HTTP GET request on that path and negotiate a GeoJSON (accept: `application/geo+json application=ogc-record`) response.
30+
. Issue an HTTP GET request on that path and negotiate a GeoJSON (accept: `application/geo+json`) response.
3131
. Check that the value of the returned HTTP status header is +200+.
32-
. Validate that the value of the `Content-Type` HTTP header is `application/geo+json application=ogc-record`.
32+
. Validate that the value of the `Content-Type` HTTP header is `application/geo+json`.
3333
. Validate the content of the response using the schema https://schemas.opengis.net/ogcapi/records/part1/1.0/openapi/schemas/recordGeoJSON.yaml[recordGeoJSON.yaml].
3434
. Verify that all links in the `links` section include a `rel` parameter.
3535
. Check that the `links` section of the record contains the following links:
3636
* a link to this response document (relation: `self`),
3737
* a typed link to the response document in every other media type supported by the service (relation: `alternate`), and
3838
* a link to the catalog that contains this record (relation: `collection`).
39+
* a profile link (href="http://www.opengis.net/def/profile/OGC/0/ogc-record", rel="profile")
3940
--
40-
====
41+
====

core/standard/requirements/building-blocks/record-core/REQ_default-mediatype.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
====
1414
[%metadata]
1515
identifier:: /req/record-core/default-mediatype
16-
part:: If the <<rc_json,JSON conformance class>> is advertised, then the default media type for record content SHALL be GeoJSON (i.e., `application/geo+json; application=ogc-record`).
16+
part:: If the <<rc_json,JSON conformance class>> is advertised, then the default media type for record content SHALL be GeoJSON (i.e., `application/geo+json`) and (as per <<req_json_record-content,/req/json/record-content">>) the record content SHALL include a link (href="http://www.opengis.net/def/profile/OGC/0/ogc-record", rel="profile") in the "links" section.
1717
part:: If the <<rc_json,JSON conformance class>> is not advertised, then the default media type for record content SHALL be HTML (i.e `text/html`).
18-
====
18+
====

0 commit comments

Comments
 (0)