Amount<T> is deserialised from JSON,YAML as Amount<Currency>, for all values of T

Description

Corda defines the Amount class as:

and obviously intends for users to handle amounts of their own type, c.f. FungibleAsset. However, we have configured our JSON library always to deserialise it as if T is java.util.Currency.

We need to teach Corda how to deserialise amounts which are not Currency.

Activity

Show:
Gavin Thomas
August 21, 2018, 8:40 AM

please backport to Corda 3.3 and CE 3.x (release-v3)

Assignee

Chris Rankin

Reporter

Chris Rankin

Labels

Sprint

None

Epic Link

None

Priority

Medium

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

None
Configure