Skip to content

v2/search breaks when pulling up a place with no observations_count #558

@OdileVidrine

Description

@OdileVidrine

While updating a field that searches for places to use the v2/search endpoint, I came across this problem:
{ "status": "500", "errors": [ { "errorCode": "500", "message": "Invalid response for status code 200: results/0/place/observations_count: must be integer" } ] }
It seems that the observations_count field is null when there are no observations in that place, but the schema expects it to be 0.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions