Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid example GeoJSON in swagger #835

Merged
merged 7 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ohsome_quality_api/api/request_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class BaseBpolys(BaseConfig):
]
],
},
},
"properties": {},
}
],
}
)
Expand Down
2 changes: 1 addition & 1 deletion regression-tests/roads_polygon_attributecompleteness.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion regression-tests/roads_polygon_mappingsaturation.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down