Y
Hacker News
new
|
ask
|
show
|
jobs
by
elros
4346 days ago
Definitely as a string. Numbers aren't things that have digits. Numbers are things you do math with.
1 comments
kalleboo
4346 days ago
OK, that's logical. So where do we specify this without a schema? What happens if a client sends a number instead of a string to the server? Should it accept it and convert it, or return an error?
link