Closed heshamMassoud closed 6 years ago
I think the problem is in the missing getAssetKey()
in the ChangeAssetName
class, that's why probably the Jackson JSON mapper doesn't serialise the key for this update action. 😉
Also for SetAssetCustomField
Hi @heshamMassoud ,
Thanks a lot for reporting this and creating the PR 👍 We will take a look at this issue and your PR this week.
I have a
ChangeAssetName
update action, created as follows:Now this update action, in JSON, looks as follows:
Which should be valid to update the asset on our API.
However, issuing such an update action using the JVM SDK, leads to the following exception:
I debugged why this happens in the JVM SDK, apparently it's in the
MetaModelUpdateCommandDslImpl#httpRequestIntent
where the POJO update actions are parsed into JSON, specifically in this lineThis actually leads to the aforementioned update action to be serialised to:
As you can see without the key which leads to the error from the platform.