-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
international money amount and currency #2
Comments
current draft for international money types, based on updated FedVoc draft in belgif/fedvoc#17 Currency: # do we add Code suffix?
description: A currency represented by its ISO 4217 alpha code
type: string
pattern: "^[A-Z]{3}$"
example: "EUR"
MonetaryAmount:
description: A monetary value
type: object
properties:
value:
"$ref": "#/components/schemas/Decimal"
currency:
"$ref": "#/components/schemas/Currency"
required: [value, currency]
example:
value: "0.01"
currency: "EUR" discussion on Decimal type is continued in belgif/rest-guide#79 |
approved by REST functional WG, still to be approved by technical WG; MonetaryAmount only after solution for Decimal type |
types were updated after REST design WG discussion in belgif/rest-guide#79 Can be re-validated by both functional and technical WGs. |
validated by functional WG |
openapi-money 1.0.1 has been released with the types graduated to stable status. |
Support international money amounts by defining:
To determine final naming of the types, an issue in fedvoc repo will be created.
For Currency, base on https://en.wikipedia.org/wiki/ISO_4217#Active_codes
For amount:
We could create an additional Money type to combine Currency and MoneyAmount in a composite type (also PositiveMoney then?)
For comparison: Zalando Money type.
The text was updated successfully, but these errors were encountered: