REST API - Filetring not working as expected for invalid data types. | Community
Skip to main content
Level 2
August 1, 2024
Solved

REST API - Filetring not working as expected for invalid data types.

  • August 1, 2024
  • 1 reply
  • 850 views
We noticed that there are cases when invalid values are passed to filters but those are not validated. 
Example:
no error is thrown and results are returned from the API. All the returned results contain approximateNumOfPeople=0 so I assume a default value is being picked up.

Other than not throwin an error, this is returning invalid results.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

You shouldn’t rely on server-side datatype validation; it’s merely a convenience that certain core fields are validated. Instead, download the schema and validate locally.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
August 1, 2024

You shouldn’t rely on server-side datatype validation; it’s merely a convenience that certain core fields are validated. Instead, download the schema and validate locally.