The following links will help you http://forums.raml.org/t/examples-validations-in-raml-parsers/80
Further example: employeeDetailsSchema.json
{ "type": "object", "$schema": "http://json-schema.org/draft-03/schema", "id": "http://jsonschema.net", "required": true, "properties": { "employeeID": { "type": "string", -------> Validates the Data type "required": true -------> Validates whether data is present or not }, "employeeFirstName": { "type": "string", "required": true }, "employeeLastName": { "type": "string", "required": true }, "employeeDOB": { "type": "string", "required": true } } }
Schema file used in my RAML
source share