GraffitiObjectJSONSchema: {
    properties: {
        actor: { type: "string" };
        allowed: { items: { type: "string" }; nullable: true; type: "array" };
        channels: { items: { type: "string" }; type: "array" };
        lastModified: { type: "number" };
        name: { type: "string" };
        source: { type: "string" };
        tombstone: { type: "boolean" };
        value: { type: "object" };
    };
    required: readonly [
        "value",
        "channels",
        "actor",
        "name",
        "source",
        "lastModified",
        "tombstone",
    ];
    type: "object";
}

A JSON Schema equivalent to the GraffitiObjectBase type. Needed internally for type inference of JSON Schemas, but can be used by implementations to validate objects.

Type declaration

  • Readonlyproperties: {
        actor: { type: "string" };
        allowed: { items: { type: "string" }; nullable: true; type: "array" };
        channels: { items: { type: "string" }; type: "array" };
        lastModified: { type: "number" };
        name: { type: "string" };
        source: { type: "string" };
        tombstone: { type: "boolean" };
        value: { type: "object" };
    }
  • Readonlyrequired: readonly [
        "value",
        "channels",
        "actor",
        "name",
        "source",
        "lastModified",
        "tombstone",
    ]
  • Readonlytype: "object"