CTZN.network Schemas Video Devlog

Item class json-table

ctzn.network/item-class

A definition for a category of items.

{
  "id": "ctzn.network/item-class",
  "title": "Item class",
  "description": "A definition for a category of items.",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "json-pointer",
      "value": "/id"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "id",
      "grouping",
      "createdAt"
    ],
    "properties": {
      "id": {
        "type": "string",
        "pattern": "^([a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])$",
        "minLength": 1,
        "maxLength": 64
      },
      "grouping": {
        "type": "string",
        "enum": [
          "unique",
          "fungible"
        ]
      },
      "displayName": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "description": {
        "type": "string",
        "maxLength": 256
      },
      "iconBlobName": {
        "type": "string"
      },
      "definition": {
        "type": "object"
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas