180Protocol / codaptor

Instantly add Corda to any tech stack and improve resiliency of your architecture
GNU Affero General Public License v3.0
15 stars 5 forks source link

We need a custom serializer for Corda Amount<Currency> #5

Closed igor-b180 closed 3 years ago

igor-b180 commented 3 years ago

Introspection of the Amount class generates a weird-looking JSON, and we need to make it easier to work with.

Further, most commonly used token for Amount is a java.util.Currency, and it would be better if we represented it as a JSON string containing ISO code.

igor-b180 commented 3 years ago

Fixed in master. Will be available in 0.2-SNAPSHOT and bugfix release 0.1.1 shortly

igor-b180 commented 3 years ago

Also now available in 1.1-SNAPSHOT