CTZN.network Schemas Video Devlog

Community invite json-table

ctzn.network/community-invite

An invite to join a community.

{
  "id": "ctzn.network/community-invite",
  "title": "Community invite",
  "description": "An invite to join a community.",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "json-pointer",
      "value": "/invitedUser/userId"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "invitedUser",
      "createdBy",
      "createdAt"
    ],
    "properties": {
      "invitedUser": {
        "type": "object",
        "required": [
          "dbUrl",
          "userId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "createdBy": {
        "type": "object",
        "required": [
          "dbUrl",
          "userId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas