CTZN.network Schemas Video Devlog

Put item class method dbmethod

ctzn.network/put-item-class-method

Write an item class record.

{
  "id": "ctzn.network/put-item-class-method",
  "title": "Put item class method",
  "description": "Write an item class record.",
  "type": "dbmethod",
  "parameters": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "classId",
      "keyTemplate"
    ],
    "properties": {
      "classId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "keyTemplate": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "auto",
                "json-pointer",
                "string"
              ]
            },
            "value": {
              "type": "string"
            }
          }
        }
      },
      "definition": {
        "type": "object"
      }
    }
  },
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "key",
      "url"
    ],
    "properties": {
      "key": {
        "type": "string"
      },
      "url": {
        "type": "string",
        "format": "uri"
      }
    }
  }
}

Schemas