Re:Best practices for REST API design (2020)
by chrisandchris on Tuesday February 23, 2021 @06:32AM
(#26236106)
While I basically agree, there‘s a difference between „always send numbers as string“ and „send something that looks like a number but is actually a string as a string“.
Why should i send a dimension as a string? How am I going to calculate the volume from 3 strings?
Same thing with serial numbers, VIN numbers, building floor numbers, phone numbers, etc. All of those should always be strings, because performing "math" on them wouldn't yield meaningful results.