Open nickevansuk opened 6 years ago
Price should always be a string with 2 decimal places
Validation error
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
To follow the proposal, a price will be a number not a string.
Other than that +1
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