{
  "name": "post",
  "properties": {
    "title": [{
      "type": "minLength",
      "constraints": [10]
    },
    {
      "type": "maxLength",
      "constraints": [20]
    }],
    "text": [{
      "type": "contains",
      "constraints": ["hello"]
    }],
    "rating": [{
      "type": "isInt"
    }],
    "email": [{
      "type": "isEmail"
    }],
    "site": [{
      "type": "isFqdn"
    }],
    "createDate": [{
      "type": "isDate"
    }],
    "tags": [{
      "type": "arrayNotEmpty"
    },
    {
      "type": "arrayMinSize",
      "constraints": [2]
    },
    {
      "type": "arrayMaxSize",
      "constraints": [5]
    },
    {
      "type": "minLength",
      "each": true,
      "constraints": [3],
      "message": "Tag is too short. Minimal length is $constraint1 characters"
    },
    {
      "type": "maxLength",
      "each": true,
      "constraints": [50],
      "message": "Tag is too long. Maximal length is $constraint1 characters"
    }]
  }
}