Douglass.network Schemas

Reaction Index json-table

douglass.network/reaction-idx

Aggregated reaction counts on a piece of content

{
  "id": "douglass.network/reaction-idx",
  "title": "Reaction Index",
  "description": "Aggregated reaction counts on a piece of content",
  "type": "json-table",
  "keyTemplate": [
    {
      "type": "json-pointer",
      "value": "/subject/dbUrl"
    }
  ],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "subject",
      "reactions"
    ],
    "properties": {
      "subject": {
        "type": "object",
        "required": [
          "dbUrl",
          "authorId"
        ],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "authorId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "reactions": {
        "type": "object",
        "patternProperties": {
          ".*": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    }
  }
}

Schemas