Function: collectionSchema()
collectionSchema(
__namedParameters):object
Defined in: src/lib/assets/schema.ts:296
The schema of a collection file holding assets of one kind.
Parameters
__namedParameters
Returns
object
@type
@type:
string=type
$id
$id:
string
$schema
$schema:
string=SCHEMA_DIALECT
additionalProperties
additionalProperties:
boolean=false
properties
properties:
object
properties.@type
@type:
object
properties.@type.const
const:
string=type
properties.$schema
$schema:
object=fileSchemaUrlSchema
properties.$schema.maxLength
readonlymaxLength:2048=MAX_URL_LENGTH
properties.$schema.minLength
readonlyminLength:1=1
properties.$schema.type
readonlytype:"string"="string"
properties.items
items:
object
properties.items.items
items:
object
properties.items.items.$ref
$ref:
string=item
properties.items.maxItems
maxItems:
number
properties.items.type
type:
string="array"
required
required:
string[]
type
type:
string="object"
Example
collectionSchema({ name: "brush-preset-collection", version: "1.0.0", type: "PaintCanvas/BrushConfigCollection",
item: brushPresetSchema.$id, maxItems: 1000 });