CTZN.network Schemas Video Devlog

Comment view json-view

ctzn.network/comment-view

Get a comment-record.

{
  "id": "ctzn.network/comment-view",
  "title": "Comment view",
  "description": "Get a comment-record.",
  "type": "json-view",
  "parameters": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "array",
    "minItems": 1,
    "additionalItems": false,
    "items": [
      {
        "type": "string"
      },
      {
        "type": "string"
      }
    ]
  },
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "author",
      "key",
      "seq",
      "url",
      "value"
    ],
    "properties": {
      "author": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          },
          "displayName": {
            "type": "string"
          }
        }
      },
      "key": {
        "type": "string"
      },
      "reactions": {
        "type": "object",
        "patternProperties": {
          ".*": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": ".+@.+"
            }
          }
        }
      },
      "replyCount": {
        "type": "number"
      },
      "relatedItemTransfers": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "dbmethodCall": {
              "type": "object",
              "properties": {
                "authorId": {
                  "type": "string",
                  "pattern": ".+@.+"
                },
                "dbUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "itemClassId": {
              "type": "string"
            },
            "qty": {
              "type": "integer"
            }
          }
        }
      },
      "seq": {
        "type": "number"
      },
      "url": {
        "type": "string",
        "format": "uri"
      },
      "value": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "community": {
            "type": "object",
            "required": [
              "dbUrl",
              "userId"
            ],
            "properties": {
              "dbUrl": {
                "type": "string",
                "format": "uri"
              },
              "userId": {
                "type": "string",
                "pattern": ".+@.+"
              }
            }
          },
          "reply": {
            "type": "object",
            "required": [
              "root"
            ],
            "properties": {
              "root": {
                "type": "object",
                "required": [
                  "dbUrl",
                  "authorId"
                ],
                "properties": {
                  "dbUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "authorId": {
                    "type": "string",
                    "pattern": ".+@.+"
                  }
                }
              },
              "parent": {
                "type": "object",
                "required": [
                  "dbUrl",
                  "authorId"
                ],
                "properties": {
                  "dbUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "authorId": {
                    "type": "string",
                    "pattern": ".+@.+"
                  }
                }
              }
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}

Schemas