intridea / multi_json

A generic swappable back-end for JSON handling.
http://rdoc.info/projects/intridea/multi_json
MIT License
757 stars 129 forks source link

MultiJSON::ParseError occurs when a type integer property format is invalid #175

Closed nextofsearch closed 7 years ago

nextofsearch commented 7 years ago

Hi,

Is this an intended behavior that MultiJSON::ParseError occurs when a integer-type property's format is invalid

{
  "customer_id": 002
}
rwz commented 7 years ago

We don't have any guidelines around malformed integers specifically, this behavior is up to the adapter. I expect most adapters to reject it and throw parse error.

Feel free to comment if you have further questions.