Programming Language independent Model Validation

前端 未结 4 529
隐瞒了意图╮
隐瞒了意图╮ 2021-01-12 18:05

Let\'s say you use several different programming languages and frameworks in your infrastructure to handle large amounts of traffic etc.

Example Stack:

4条回答
  •  遥遥无期
    2021-01-12 18:53

    To add to @Nathan Ostgard's post, XML, XSD and, when necessary, XSLT might work as well. The advantage to this would be a) XSD has the simple validation built into it b) most languages have good support for this c) you wouldn't have to write validation in each language; stuff that isn't handled in the schema could be written once in XSLT (with the caveat that XSLT implementations tend to vary :) )

提交回复
热议问题