News for hackers. Stuff that matters.
Re:A few tips for Web API design by udoprog on Wednesday December 22, 2010 @08:43AM (#2031273)
The Article only mentioned it's string restrictions, but I'm still interested in how they formalize and implement their schemas. It's granted that xsd is pretty messy, but exposing a schema like this - or with alternative definition languages - goes a long way in helping client adaption seeing as there are a trillion autopwn validation and binding tools available.
Re:A few tips for Web API design by wlievens on Wednesday December 22, 2010 @09:06AM (#2031325)
Exactly. I like how you threw binding in there too; I use schema languages (such as XSD) for binding at least as much as for validation. Maybe it's because I program in a statically typed language, but I really apprecicate the value of schema's and related tools - even while acknowledging the schema languages themselves can be messy and imperfect.
Re:A few tips for Web API design by vhackish on Wednesday December 22, 2010 @12:21PM (#2031788)
I sort of like schema validation, but it makes it a pain to add things to your objects later if clients of your API are depending on that (they will break when you add something).