Has anyone used schema validators before?
-- If a browser decides to send malformed json, it will crash the server if the server doesnt reject them. Anyone used a validator with amber? Sincerely yours, Apostolis Xekoukoulotakis You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Hi Apostolis,
On Thu, Apr 4, 2013 at 8:56 AM, Apostolis Xekoukoulotakis <[hidden email]> wrote:
--
so far I haven't yet used something like json-schema at all.
For a private project I do the validation myself by testing for special keys in the parsed JSON. However, I was planing to try json-schema to eliminate the hand written validation. So would you like to use the validator for a project built with Amber or within Amber? Best, Manfred You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
I am creating a nodejs server written in Amber and found that checking the schema by hand is very tedious. It will be very valuable for anyone that creates a server in amber. 2013/4/4 Manfred Kröhnert <[hidden email]> Hi Apostolis, Sincerely yours, Apostolis Xekoukoulotakis You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
But if there is a js library for it already (which no doubt must), why not just reuse it? No need to put in into Amber itself. IMO.
Apostolis Xekoukoulotakis wrote: > I am creating a nodejs server written in Amber and found that checking > the schema by hand is very tedious. > It will be very valuable for anyone that creates a server in amber. > > > > 2013/4/4 Manfred Kröhnert <[hidden email] > <mailto:[hidden email]>> > > Hi Apostolis, > > On Thu, Apr 4, 2013 at 8:56 AM, Apostolis Xekoukoulotakis > <[hidden email] <mailto:[hidden email]>> wrote: > > Has anyone used schema validators before? > > If a browser decides to send malformed json, it will crash the > server if the server doesnt reject them. > > http://json-schema.org/ > > Anyone used a validator with amber? > > > so far I haven't yet used something like json-schema at all. > > For a private project I do the validation my > special keys in the parsed JSON. > However, I was planing to try json-schema to eliminate the hand > written validation. > > So would you like to use the validator for a project built with > Amber or within Amber? > > Best, > Manfred > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to [hidden email] > <mailto:amber-lang%[hidden email]>. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > > Sincerely yours, > Apostolis Xekoukoulotakis > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email]. > For more optio > > -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
No need indeed. 2013/4/4 Herby Vojčík <[hidden email]> But if there is a js library for it already (which no doubt must), why not just reuse it? No need to put in into Amber itself. IMO. Sincerely yours, Apostolis Xekoukoulotakis You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |