4 ms·
XSD is bulletproof. Why don't we just keep using XSD?
by tootie 10y ago
XSD is bulletproof. Why don't we just keep using XSD?
- sheeshkebab 10y agomaybe b/c it's for XML and not JSON, which most REST apis use.
- tootie 10y agoIf you don't use namespaces, you can validate JSON against an XSD. When I'm doing a REST API in Spring, I'll use and XSD and XJC (XSD Java Compiler) to generate model classes. The API endpoints are able to process those models as XML or JSON with 1 line of config.
- abraae 10y agoBecause people don't want bullet proof. They want quick wins that work straight away.
- tootie 10y agoQuicker, easier, more seductive
- Mikhail_Edoshin 10y ago"For every complex problem there is an answer that is clear, simple, and wrong." :)