Variable: assetHeaderSchema
constassetHeaderSchema:object
Defined in: src/lib/assets/schema.ts:145
Schema of the optional parts of an asset's header, each checked on its own when sanitising (not published)
Type Declaration
$id
readonly$id:"paintcanvas/asset-header"="paintcanvas/asset-header"
properties
readonlyproperties:object
properties.author
readonlyauthor:object=authorSchema
properties.author.anyOf
readonlyanyOf: readonly [{maxLength:100;minLength:1;type:"string"; }, {additionalProperties:false;properties: {did: {maxLength:2048;pattern:"^did:[a-z]+:[a-zA-Z0-9._:%-]+$";type:"string"; };maxLength:254;type:"string"; };handle: {maxLength:100;minLength:1;type:"string"; };homepage: {maxLength:2048;type:"string"; };name: {maxLength:100;minLength:1;type:"string"; }; };required: readonly ["name"];type:"object"; }]
properties.group
readonlygroup:object=assetTextSchema
properties.group.maxLength
readonlymaxLength:100=MAX_ASSET_TEXT_LENGTH
properties.group.minLength
readonlyminLength:1=1
properties.group.pattern
readonlypattern: "\\S" = "\\S"
properties.group.type
readonlytype:"string"="string"
properties.updatedAt
readonlyupdatedAt:object=dateTimeSchema
properties.updatedAt.pattern
readonlypattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$" =DATE_TIME_PATTERN
properties.updatedAt.type
readonlytype:"string"="string"
properties.version
readonlyversion:object
properties.version.maxLength
readonlymaxLength:20=MAX_ASSET_VERSION_LENGTH
properties.version.minLength
readonlyminLength:1=1
properties.version.type
readonlytype:"string"="string"
type
readonlytype:"object"="object"