It's called "JSON schema validation", and I've been looking for it too recently.
There are a lot of modules to do this job, but they all have issues, so I didn't find any really good one. Some of them are too strict, others are too verbose, so casting manually doesn't look so bad after this. On Wednesday, November 13, 2013 4:40:22 AM UTC+4, Oleg Slobodskoi wrote: > > Hi everybody, > > what are you using for casting of such data? I mean data which comes from > url query serialized to object doesn't has any more correct primitive data > types like numbers and booleans. I was doing casting manually in every > route handler, but this is annoying. I just wrote a module for this, > because I haven't found any, but probably I was looking for wrong keywords. > > > Best, > Oleg Slobodskoi > @oleg008 > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
