Basically, I want to be able to say that few fields have extra restrictions beyond “string” and “integer”. For example, field “user name” is 32 characters or less, “age” must be an integer greater than 21, etc.
Is there some standard way to specify this without the huge overhead of a WSDL file, preferably supported by a ruby gem of some sort?
There’s the jsonschema gem
https://github.com/Constellation/ruby-jsonchema
more info http://json-schema.org/