Skip to content

Commit 24dc072

Browse files
authored
Fix 'type' member of the rel=http://www.opengis.net/def/rel/ogc/1.0/schema link (#1968)
According to Requirement 17 /req/returnables-and-receivables/op of OGC API Features Part 5, the media type shall be application/schema+json.
1 parent 00b1445 commit 24dc072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygeoapi/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ def describe_collections(api: API, request: APIRequest,
10851085

10861086
if collection_data_type in ['feature', 'coverage', 'record']:
10871087
collection['links'].append({
1088-
'type': FORMAT_TYPES[F_JSON],
1088+
'type': 'application/schema+json',
10891089
'rel': f'{OGC_RELTYPES_BASE}/schema',
10901090
'title': l10n.translate('Schema of collection in JSON', request.locale), # noqa
10911091
'href': f'{api.get_collections_url()}/{k}/schema?f={F_JSON}' # noqa

0 commit comments

Comments
 (0)