Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

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

Open
nickevansuk opened this issue Jun 5, 2018 · 1 comment
Open

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

nickevansuk opened this issue Jun 5, 2018 · 1 comment

Comments

@nickevansuk
Copy link
Contributor

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
Copy link
Contributor

ldodds commented Jul 17, 2018

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

Other than that +1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants