Variable: patchMessageSchema
constpatchMessageSchema:object
Defined in: src/lib/messages/schema.ts:104
JSON schema for a patch message
Type Declaration
$id
readonly$id:"paintcanvas/message/patch"="paintcanvas/message/patch"
additionalProperties
readonlyadditionalProperties:false=false
properties
readonlyproperties:object
properties.coords
readonlycoords:object
properties.coords.items
readonlyitems:object=coordinate
properties.coords.items.maximum
readonlymaximum:10000=MAX_MESSAGE_CANVAS_SIZE
properties.coords.items.minimum
readonlyminimum:0=0
properties.coords.items.type
readonlytype:"integer"="integer"
properties.coords.maxItems
readonlymaxItems:4=4
properties.coords.minItems
readonlyminItems:4=4
properties.coords.type
readonlytype:"array"="array"
properties.data
readonlydata:object
properties.data.maxLength
readonlymaxLength:number=MAX_PATCH_DATA_LENGTH
properties.data.pattern
readonlypattern:"^[A-Za-z0-9+/]*={0,2}$"="^[A-Za-z0-9+/]*={0,2}$"
properties.data.type
readonlytype:"string"="string"
properties.encoding
readonlyencoding:object
properties.encoding.enum
readonlyenum: ("rgba-deflate"|"png")[]
properties.protocol
protocol:
object
properties.protocol.const
readonlyconst:2=PROTOCOL_VERSION
properties.type
readonlytype:object
properties.type.const
readonlyconst:"patch"=CanvasMessageType.Patch
required
readonlyrequired: readonly ["protocol","type","coords","encoding","data"]
type
readonlytype:"object"="object"