CTZN.network Schemas Video Devlog

Community membership json-table

ctzn.network/community-membership

Declaration of membership in a community by a user.

{
  "id": "ctzn.network/community-membership",
  "title": "Community membership",
  "description": "Declaration of membership in a community by a user.",
  "type": "json-table",
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "community",
      "joinDate"
    ],
    "properties": {
      "community": {
        "type": "object",
        "required": [
          "dbUrl",
          "userId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "joinDate": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas