{
  "$schema": "http://json-schema.org/draft-04/schema",
  "id": "user-account.json",
  "type": "object",
  "properties": {
    "userId": {
      "readOnly": true,
      "type": "integer"
    },
    "email": {
      "type": "string",
      "maxLength": 550
    },
    "firstName": {
      "type": "string",
      "maxLength": 100
    },
    "lastName": {
      "type": "string",
      "maxLength": 100
    },
    "active": {
      "readOnly": false,
      "type": [ "boolean", "null" ]
    },
    "planId": {
      "type": "integer"
    },
    "_links": {
      "$ref": "link-collection.json"
    }
  },
  "required": [ "email", "firstName", "lastName" ]
}