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

Search does not conform to API specs when there is no result #44

Open
Fylipp opened this issue May 16, 2023 · 0 comments
Open

Search does not conform to API specs when there is no result #44

Fylipp opened this issue May 16, 2023 · 0 comments
Labels

Comments

@Fylipp
Copy link

Fylipp commented May 16, 2023

According to the API specifications the objectIDs field of a search response is an integer array that defaults to []. However, when performing a search that yields no results (such as https://collectionapi.metmuseum.org/public/collection/v1/search?q=noresult) this is the response I receive from the API:

{"total":0,"objectIDs":null}

It seems the API and specs do not match up. This can be (and has been for me) an unexpected stumbling block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants