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
Currently, the get_images method of the DockerHubApi in our codebase filters repositories in the kathara Docker Hub by checking if the repository_type key in the API response is equal to image.
Docker Hub has made changes to its API response structure, specifically in the way repository types are represented. The new API response format includes a repository_type key with a value of null for new images. Instead, the relevant information about the repository type has been moved to the content_types array within the response.
To adapt to these changes, we plan to make the following adjustment to the get_images method of the DockerHubApi:
Modify the method to filter repositories based on the content_types key in the API response rather than the repository_type key.
By implementing this change, our code will be compatible with both the old and new Docker Hub API response formats, ensuring that we can retrieve images correctly.
Impact:
This change will allow the get_images method to work seamlessly with the new Docker Hub API response format.
Compatibility with older API response formats will be maintained.
The text was updated successfully, but these errors were encountered:
Currently, the
get_images
method of theDockerHubApi
in our codebase filters repositories in thekathara
Docker Hub by checking if therepository_type
key in the API response is equal toimage
.Docker Hub has made changes to its API response structure, specifically in the way repository types are represented. The new API response format includes a
repository_type
key with a value of null for new images. Instead, the relevant information about the repository type has been moved to thecontent_types
array within the response.To adapt to these changes, we plan to make the following adjustment to the
get_images
method of theDockerHubApi
:content_types
key in the API response rather than therepository_type
key.By implementing this change, our code will be compatible with both the old and new Docker Hub API response formats, ensuring that we can retrieve images correctly.
Impact:
get_images
method to work seamlessly with the new Docker Hub API response format.The text was updated successfully, but these errors were encountered: