diff --git a/CHANGELOG.md b/CHANGELOG.md index 8edd7bf79..c13505774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,13 @@ ### Bug Fixes +- fix: invalid example GeoJSON in swagger ([#831]) - fix: global coverage is now returned correctly ([#821]) [#821]: https://github.com/GIScience/ohsome-quality-api/issues/821 +[#831]: https://github.com/GIScience/ohsome-quality-api/issues/831 +[#832]: https://github.com/GIScience/ohsome-quality-api/issues/832 ## Release 1.5.0 diff --git a/ohsome_quality_api/api/request_models.py b/ohsome_quality_api/api/request_models.py index ec3690387..6456bddd0 100644 --- a/ohsome_quality_api/api/request_models.py +++ b/ohsome_quality_api/api/request_models.py @@ -41,7 +41,8 @@ class BaseBpolys(BaseConfig): ] ], }, - }, + "properties": {}, + } ], } ) diff --git a/regression-tests/roads_polygon_attributecompleteness.hurl b/regression-tests/roads_polygon_attributecompleteness.hurl index 01edde66f..d461e79a5 100644 --- a/regression-tests/roads_polygon_attributecompleteness.hurl +++ b/regression-tests/roads_polygon_attributecompleteness.hurl @@ -13,7 +13,7 @@ bytes count > 1900 jsonpath "$.result[0].metadata.name" == "Attribute Completeness" jsonpath "$.result[0].topic.name" == "Roads" -jsonpath "$.result[0].result.description" contains "The ratio of the features (all: 1034299.9) compared to features with expected tags (matched: 276785.2) is 0.27." +jsonpath "$.result[0].result.description" contains "The ratio of the features (all: 1034408.4) compared to features with expected tags (matched: 278118.2) is 0.27. Around 25-75% of the features match the expected tags." jsonpath "$.result[0].result.figure.data[0].gauge.steps[0].color" == "tomato" jsonpath "$.result[0].result.label" == "yellow" diff --git a/regression-tests/roads_polygon_mappingsaturation.hurl b/regression-tests/roads_polygon_mappingsaturation.hurl index 9ca7cf5ac..d57670acf 100644 --- a/regression-tests/roads_polygon_mappingsaturation.hurl +++ b/regression-tests/roads_polygon_mappingsaturation.hurl @@ -12,7 +12,7 @@ status == 200 bytes count > 24000 jsonpath "$.result[0].topic.name" == "Roads" -jsonpath "$.result[0].result.description" contains "The saturation of the last 3 years is 98.3%.High saturation has been reached (97% < Saturation ≤ 100%)." +jsonpath "$.result[0].result.description" contains "The saturation of the last 3 years is 98.46%.High saturation has been reached (97% < Saturation ≤ 100%)." jsonpath "$.result[0].result.figure.data[0].line.color" == "#2185D0" jsonpath "$.result[0].result.label" == "green"