{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/resource",
  "definitions": {
    "resource": {
      "title": "resource",
      "type": "object",
      "required": [
        "name",
        "path",
        "description"
      ],
      "additionalProperties": false,
      "properties": {
        "uuid": {
          "$ref": "schema/uuid.schema.json"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "minLength": 2,
          "maxLength": 60
        },
        "path": {
          "type": "string",
          "title": "Path",
          "minLength": 1,
          "pattern": "^\\/[\\w\\-.~%!$&'()*+,;=:@\\/]*$"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "minLength": 1,
          "maxLength": 254
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}