With the generation of the project (thx to openapi-generator) we have to patch the Structure for Asset to have a proper VideoAsset and ImageAsset.
This needs also to be done for Destinations (inside output).
Instead of doing it manually for each ressource and having two properties (like Asset and TypedAsset), it would be better uppon unmarshal to have directly the current value of TypedAsset.
The code to modify is in api_edit.go in function PostRender.
With the generation of the project (thx to
openapi-generator
) we have to patch the Structure for Asset to have a properVideoAsset
andImageAsset
.This needs also to be done for
Destinations
(insideoutput
). Instead of doing it manually for each ressource and having two properties (likeAsset
andTypedAsset
), it would be better uppon unmarshal to have directly the current value ofTypedAsset
.The code to modify is in
api_edit.go
in functionPostRender
.