docs(api): clarify swagger-only image descriptor wrapper

Agent-Logs-Url: https://github.com/project-zot/zot/sessions/5d32009a-59ed-4867-a7d3-39758c16a090

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-18 23:28:12 +00:00
committed by GitHub
parent b8fcf96335
commit c372bb1b71
4 changed files with 8 additions and 6 deletions
+2
View File
@@ -602,6 +602,8 @@ type ImageIndex struct {
Annotations map[string]string `json:"annotations,omitempty"`
}
// ImageDescriptor is a swagger-friendly variant of ispec.Descriptor.
// It keeps digest as string to avoid swagger parser issues with external digest.Digest.
type ImageDescriptor struct {
MediaType string `json:"mediaType"`
Digest string `json:"digest"`