openactive / open-booking-api

Repository for the Open Booking API specification
Other
2 stars 3 forks source link

Revert price to decimal #217

Open nickevansuk opened 3 years ago

nickevansuk commented 3 years ago

In line with the discussion here, the below text should be reverted to instead only allow schema:Number as the value of price (not Float, as this erroneously infers floating point representation).

Note that representing price as a Float leads to the possibility of software rounding errors; accordingly use of Text is recommended here.

All implementers and the tooling are currently using numeric representation, and no issues have so far been reported.