salesking / json_schema_tools

Tools for building and handling a JSON Schema powered API's
27 stars 9 forks source link

obj.from_json should convert values to ruby types #14

Closed schorsch closed 9 years ago

schorsch commented 9 years ago

e.g so a date-string is converted to a Date when we build object proprerties from a json string:

https://github.com/salesking/json_schema_tools/blob/master/lib/schema_tools/modules/attributes.rb#L89