CTZN.network Schemas Video Devlog

Database method call result json-table

ctzn.network/dbmethod-result

The result of a method-call which has been handled by some database

{
  "id": "ctzn.network/dbmethod-result",
  "title": "Database method call result",
  "description": "The result of a method-call which has been handled by some database",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "json-pointer",
      "value": "/call/dbUrl"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "call",
      "code",
      "createdAt"
    ],
    "properties": {
      "call": {
        "type": "object",
        "required": [
          "dbUrl",
          "authorId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "authorId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "code": {
        "type": "string",
        "enum": [
          "success",
          "method-not-found",
          "not-authorized",
          "validation-failed",
          "not-found",
          "error"
        ]
      },
      "details": {
        "type": "object"
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas