mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
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:
committed by
GitHub
parent
b8fcf96335
commit
c372bb1b71
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user