Skip to content

Commit 9a71a01

Browse files
authored
Merge pull request #1990 from geopython/oaproc-openapi-prefer
2 parents 4674f9b + 45890ce commit 9a71a01

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: pygeoapi/api/processes.py

+10
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,16 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
725725
'description': md_desc,
726726
'tags': [name],
727727
'operationId': f'execute{name.capitalize()}Job',
728+
'parameters': [{
729+
'in': 'header',
730+
'name': 'Prefer',
731+
'required': False,
732+
'description': 'Indicates client preferences, including whether the client is capable of asynchronous processing.', # noqa
733+
'schema': {
734+
'type': 'string',
735+
'enum': ['respond-async']
736+
}
737+
}],
728738
'responses': {
729739
'200': {'$ref': '#/components/responses/200'},
730740
'201': {'$ref': f"{OPENAPI_YAML['oapip']}/responses/ExecuteAsync.yaml"}, # noqa

Diff for: tests/api/test_itemtypes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def test_get_collection_item_json_ld(config, api_):
637637
expanded = jsonld.expand(feature)[0]
638638
assert expanded['http://www.opengis.net/ont/geosparql#hasGeometry'][0][
639639
'http://www.opengis.net/ont/geosparql#asWKT'][0][
640-
'@value'] == 'MULTIPOINT (10 40, 40 30, 20 20, 30 10)'
640+
'@value'] == 'MULTIPOINT ((10 40), (40 30), (20 20), (30 10))'
641641
assert expanded['https://schema.org/geo'][0][
642642
'https://schema.org/polygon'][0][
643643
'@value'] == "10.0,40.0 40.0,30.0 20.0,20.0 30.0,10.0 10.0,40.0"

0 commit comments

Comments
 (0)