CTZN.network Schemas Video Devlog

User json-table

ctzn.network/user

Record of a user or comunity registered on a ctzn server.

{
  "id": "ctzn.network/user",
  "title": "User",
  "description": "Record of a user or comunity registered on a ctzn server.",
  "type": "json-table",
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "username",
      "dbUrl",
      "joinDate"
    ],
    "properties": {
      "username": {
        "type": "string",
        "pattern": "^([a-zA-Z][a-zA-Z0-9-]{1,62}[a-zA-Z0-9])$"
      },
      "type": {
        "type": "string",
        "description": "Current values: 'citizen' or 'community'"
      },
      "dbUrl": {
        "type": "string",
        "pattern": "^hyper://([a-f0-9]{64})/$"
      },
      "joinDate": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas