Douglass.network Schemas

Community role json-table

douglass.network/community-role

Definition of a role in a community and of its permissions.

{
  "id": "douglass.network/community-role",
  "title": "Community role",
  "description": "Definition of a role in a community and of its permissions.",
  "type": "json-table",
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "roleId",
      "createdAt"
    ],
    "properties": {
      "roleId": {
        "type": "string"
      },
      "permissions": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "permId"
          ],
          "properties": {
            "permId": {
              "type": "string"
            }
          }
        }
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas