CTZN.network Schemas Video Devlog

Post json-table

ctzn.network/post

A top-level post

{
  "id": "ctzn.network/post",
  "title": "Post",
  "description": "A top-level post",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "auto"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "text",
      "createdAt"
    ],
    "properties": {
      "text": {
        "type": "string",
        "maxLength": 256
      },
      "media": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "blobs"
          ],
          "properties": {
            "caption": {
              "type": "string"
            },
            "blobs": {
              "type": "object",
              "required": [
                "original"
              ],
              "properties": {
                "thumb": {
                  "type": "object",
                  "required": [
                    "mimeType",
                    "blobName"
                  ],
                  "properties": {
                    "mimeType": {
                      "type": "string"
                    },
                    "blobName": {
                      "type": "string"
                    }
                  }
                },
                "original": {
                  "type": "object",
                  "required": [
                    "mimeType",
                    "blobName"
                  ],
                  "properties": {
                    "mimeType": {
                      "type": "string"
                    },
                    "blobName": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "extendedText": {
        "type": "string"
      },
      "extendedTextMimeType": {
        "type": "string"
      },
      "community": {
        "type": "object",
        "required": [
          "dbUrl",
          "userId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas