{
  "id": "http://www.gandhi.io/schema/user",
  "type":"object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "required": [
    "id",
    "email"
  ],
  "additionalProperties": false,
  "properties":{
    "admin": {
      "type": "boolean",
      "default": false
    },
    "email": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "default": ""
    },
    "password": {
      "type": "string",
      "minLength": 4
    },
    "recovery_token": {
      "type": ["null","string"],
      "default": null
    },
    "created": {
      "type": "number"
    },
    "updated": {
      "type": "number"
    },
    "preferences": {
      "type": "object",
      "default": {}
    }
  }
}
