You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hasImages query parameter does not return the expected results. The query should return objects that have images only, but the objects returned do not have images.
Steps to reproduce
Query the Met Museum API at this endpoint GET /public/collection/v1/search with the following parameters:
isHighlight=true
hasImages=true
q=sunflowers
Get the details of the first object returned in the response using the object ID.
Check if the object has a primary image.
Repeat the process for the other objects returned in the response.
Compare the results with the expected behavior.
Expected behavior
The result of the query should be an array that contains the object IDs of the objects that match the query string. The object should have the following properties isHighlight and primaryImage that are used to filter the results
"isHighlight": true,
"primaryImage": "url",
Actual behavior
The objects returned in the response do not have a primary image.
This unexpected since the query parameter hasImages=true should return objects with images only.
Example
Response to https://collectionapi.metmuseum.org/public/collection/v1/search?isHighlight=true&hasImages=true&q=sunflowers:
When getting the object with ID 485308, the object does not have a primary image, which is unexpected since the query parameter hasImages=true should return objects with images only.
The object does not have a primaryImageSmall, additionalImages either.
Additional information
the test in the example were done on the 04/05/2024 using postman/react/web browser and the results were consistent.
The text was updated successfully, but these errors were encountered:
hasImages does not return the expected results
Description
The
hasImages
query parameter does not return the expected results. The query should return objects that have images only, but the objects returned do not have images.Steps to reproduce
Query the Met Museum API at this endpoint
GET /public/collection/v1/search
with the following parameters:isHighlight=true
hasImages=true
q=sunflowers
Get the details of the first object returned in the response using the object ID.
Check if the object has a primary image.
Repeat the process for the other objects returned in the response.
Compare the results with the expected behavior.
Expected behavior
The result of the query should be an array that contains the object IDs of the objects that match the query string. The object should have the following properties
isHighlight
andprimaryImage
that are used to filter the resultsActual behavior
The objects returned in the response do not have a primary image.
This unexpected since the query parameter
hasImages=true
should return objects with images only.Example
Response to
https://collectionapi.metmuseum.org/public/collection/v1/search?isHighlight=true&hasImages=true&q=sunflowers
:Getting details about the first object using the following URL
https://collectionapi.metmuseum.org/public/collection/v1/objects/485308
When getting the object with ID 485308, the object does not have a primary image, which is unexpected since the query parameter
hasImages=true
should return objects with images only.The object does not have a primaryImageSmall, additionalImages either.
Additional information
the test in the example were done on the 04/05/2024 using postman/react/web browser and the results were consistent.
The text was updated successfully, but these errors were encountered: