Tuesday, April 15, 2014

JSON Schema

JSON Schema Examples:

Here is a basic example of a JSON Schema:
{
 "title": "Example Schema",
 "type": "object",
 "properties": {
  "firstName": {
   "type": "string"
  },
  "lastName": {
   "type": "string"
  },
  "age": {
   "description": "Age in years",
   "type": "integer",
   "minimum": 0
  }
 },
 "required": ["firstName", "lastName"]
}

No comments: