Sanitization of RAML parameters into strict values in JavaScript