openactive-archive / developer-microsite

ARCHIVE: Microsite for the OpenActive Developer engagement, archived from 2018
0 stars 2 forks source link

Price should always be a string with 2 decimal places #15

Open nickevansuk opened 6 years ago

nickevansuk commented 6 years ago

Rule name

Price should always be a string with 2 decimal places

Rule type

Validation error

Rule hint

It is important to represent price consistently, without currency, and as a string with 2 decimal places, to allow it to be easily displayed and parsed

Associated proposal or model reference

Examples

ldodds commented 6 years ago

To follow the proposal, a price will be a number not a string.

Other than that +1