CTZN.network Schemas Video Devlog

Thread Index json-table

ctzn.network/thread-idx

Threaded replies to a piece of content

{
  "id": "ctzn.network/thread-idx",
  "title": "Thread Index",
  "description": "Threaded replies to a piece of content",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "json-pointer",
      "value": "/subject/dbUrl"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "subject",
      "items"
    ],
    "properties": {
      "subject": {
        "type": "object",
        "required": [
          "dbUrl",
          "authorId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "authorId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "dbUrl",
            "authorId"
          ],
          "properties": {
            "dbUrl": {
              "type": "string",
              "format": "uri"
            },
            "authorId": {
              "type": "string",
              "pattern": ".+@.+"
            }
          }
        }
      }
    }
  }
}

Schemas