Strict validation of RAML parameters in JavaScript