Skip to content

Commit 850d678

Browse files
Add support for Context in AssetResult
1 parent 636439c commit 850d678

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/admin/asset.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ type AssetResult struct {
9393
CinemagraphAnalysis CinemagraphAnalysisResult `json:"cinemagraph_analysis"`
9494
Usage interface{} `json:"usage"`
9595
OriginalFilename string `json:"original_filename"`
96+
Context AssetContextResult `json:"context"`
9697
Error api.ErrorResp `json:"error,omitempty"`
9798
Response interface{}
9899
}
@@ -142,6 +143,11 @@ type PredominantResult struct {
142143
Cloudinary [][]interface{} `json:"cloudinary"`
143144
}
144145

146+
// AssetContextResult contains the contextual metadata
147+
type AssetContextResult struct {
148+
Custom map[string]string `json:"custom"`
149+
}
150+
145151
// UpdateAssetParams are the parameters for UpdateAsset.
146152
type UpdateAssetParams struct {
147153
AssetType api.AssetType `json:"-"`

0 commit comments

Comments
 (0)