We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 636439c commit 58d2f92Copy full SHA for 58d2f92
1 file changed
api/admin/asset.go
@@ -93,6 +93,7 @@ type AssetResult struct {
93
CinemagraphAnalysis CinemagraphAnalysisResult `json:"cinemagraph_analysis"`
94
Usage interface{} `json:"usage"`
95
OriginalFilename string `json:"original_filename"`
96
+ Context AssetContextResult `json:"context,omitempty"`
97
Error api.ErrorResp `json:"error,omitempty"`
98
Response interface{}
99
}
@@ -142,6 +143,11 @@ type PredominantResult struct {
142
143
Cloudinary [][]interface{} `json:"cloudinary"`
144
145
146
+// AssetContextResult contains the contextual metadata
147
+type AssetContextResult struct {
148
+ Custom map[string]string `json:"custom,omitempty"`
149
+}
150
+
151
// UpdateAssetParams are the parameters for UpdateAsset.
152
type UpdateAssetParams struct {
153
AssetType api.AssetType `json:"-"`
0 commit comments