I’d like to update the recommendations related to representation of amounts. Currently we have this:
hasUnit(REQUIRED): name of the unit, according to Ontology of units of Measure classification. The RECOMMENDED unit for countable items isone.hasNumericalValue(OPTIONAL): the amount of the resource. If not specified, arbitrary amounts can be used when responding to the proposal.
-
The
oneunit is not a good fit for currency amounts. @lynnfoster, what are the alternatives? I found “amount of money”, is it supposed to be a unit label, e.g."hasUnit": "amount of money"? -
hasNumericalValueis a string in all FEP-0837 examples, but this is not a requirement. I want to make serialization into decimal string mandatory, because JSON numbers should not be used for currency amounts.