Variable GraffitiPutObjectJSONSchemaConst

GraffitiPutObjectJSONSchema: {
    type: "object";
    properties: {
        value: { type: "object" };
        channels: { type: "array"; items: { type: "string" } };
        allowed: { type: "array"; items: { type: "string" }; nullable: true };
        url: { type: "string" };
        actor: { type: "string" };
        lastModified: { type: "number" };
    };
    additionalProperties: false;
    required: readonly ["value", "channels"];
} = ...

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

Type declaration

  • Readonlytype: "object"
  • Readonlyproperties: {
        value: { type: "object" };
        channels: { type: "array"; items: { type: "string" } };
        allowed: { type: "array"; items: { type: "string" }; nullable: true };
        url: { type: "string" };
        actor: { type: "string" };
        lastModified: { type: "number" };
    }
  • ReadonlyadditionalProperties: false
  • Readonlyrequired: readonly ["value", "channels"]