site-library/.astro/collections/library.schema.json
2025-12-27 16:02:48 +01:00

602 lines
16 KiB
JSON

{
"$ref": "#/definitions/library",
"definitions": {
"library": {
"type": "object",
"properties": {
"cart_id": {
"type": "string"
},
"code": {
"type": "string"
},
"price": {
"type": "number"
},
"cscartCats": {
"type": "array",
"items": {
"type": "number"
}
},
"cscartId": {
"type": "number"
},
"vendorId": {
"type": "number"
},
"shipping": {
"type": "object",
"properties": {
"price": {
"type": "number"
},
"transit": {
"type": "number"
},
"handling": {
"type": "number"
}
},
"additionalProperties": false,
"default": {
"price": 0,
"transit": 12,
"handling": 2
}
},
"replaced_by": {
"type": "string"
},
"alternatives": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name",
"url",
"type"
],
"additionalProperties": false
}
},
"used_by": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/alternatives/items"
}
},
"image": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"thumb": {
"type": "string"
},
"responsive": {
"type": "string"
},
"meta": {},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"alt": {
"type": "string"
},
"title": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"order": {
"type": "number"
},
"exif": {
"type": "object",
"properties": {
"file": {},
"jfif": {},
"exif": {},
"gps": {}
},
"additionalProperties": false
}
},
"required": [
"url"
],
"additionalProperties": false
},
"name": {
"type": "string"
},
"edrawings": {
"type": "string"
},
"cad": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"name": {
"type": "string"
},
"configuration": {
"type": "string"
},
"step": {
"type": "string"
},
"model": {
"type": "string"
},
"html": {
"type": "string"
}
},
"required": [
"file",
"name",
"configuration"
],
"additionalProperties": false
},
"default": []
},
"manufacturing": {
"type": "object",
"properties": {
"lead_time": {
"type": "number"
}
},
"additionalProperties": false
},
"showDimensions": {
"type": "boolean"
},
"showParts": {
"type": "boolean"
},
"Preview3d": {
"type": "boolean"
},
"flags": {
"type": "number",
"default": 0
},
"slug": {
"type": "string"
},
"keywords": {
"type": "string"
},
"meta_keywords": {
"type": "string"
},
"version": {
"type": "string"
},
"versions": {
"type": "object",
"properties": {
"version": {
"type": "string"
},
"up": {
"type": "string"
},
"down": {
"type": "string"
},
"family": {
"type": "string"
},
"sheet": {
"type": "string"
}
},
"additionalProperties": false
},
"status": {
"type": "string"
},
"authors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"name",
"url"
],
"additionalProperties": false
}
},
"assets": {
"type": "object",
"properties": {
"gallery": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
},
"renderings": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
},
"components": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
},
"configurations": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
},
"showcase": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
},
"samples": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/image"
}
}
},
"additionalProperties": false,
"default": {
"gallery": [],
"renderings": [],
"components": [],
"configurations": [],
"showcase": [],
"samples": []
}
},
"resources": {
"type": "string"
},
"tests": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/alternatives/items"
},
"default": []
},
"download": {
"type": "boolean"
},
"gallery": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"glob": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"glob"
],
"additionalProperties": false
},
"default": {
"renderings": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
},
"gallery": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
},
"components": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
},
"configurations": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
},
"showcase": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
},
"samples": {
"glob": [
"*.+(JPG|jpg|png|PNG|gif)"
]
}
}
},
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cart_id": {
"$ref": "#/definitions/library/properties/cart_id"
},
"code": {
"$ref": "#/definitions/library/properties/code"
},
"price": {
"$ref": "#/definitions/library/properties/price"
},
"cscartCats": {
"$ref": "#/definitions/library/properties/cscartCats"
},
"cscartId": {
"$ref": "#/definitions/library/properties/cscartId"
},
"vendorId": {
"$ref": "#/definitions/library/properties/vendorId"
},
"shipping": {
"$ref": "#/definitions/library/properties/shipping"
},
"replaced_by": {
"$ref": "#/definitions/library/properties/replaced_by"
},
"alternatives": {
"$ref": "#/definitions/library/properties/alternatives"
},
"used_by": {
"$ref": "#/definitions/library/properties/used_by"
},
"image": {
"$ref": "#/definitions/library/properties/image"
},
"name": {
"$ref": "#/definitions/library/properties/name"
},
"edrawings": {
"$ref": "#/definitions/library/properties/edrawings"
},
"cad": {
"$ref": "#/definitions/library/properties/cad"
},
"manufacturing": {
"$ref": "#/definitions/library/properties/manufacturing"
},
"showDimensions": {
"$ref": "#/definitions/library/properties/showDimensions"
},
"showParts": {
"$ref": "#/definitions/library/properties/showParts"
},
"Preview3d": {
"$ref": "#/definitions/library/properties/Preview3d"
},
"flags": {
"$ref": "#/definitions/library/properties/flags"
},
"slug": {
"$ref": "#/definitions/library/properties/slug"
},
"keywords": {
"$ref": "#/definitions/library/properties/keywords"
},
"meta_keywords": {
"$ref": "#/definitions/library/properties/meta_keywords"
},
"version": {
"$ref": "#/definitions/library/properties/version"
},
"versions": {
"$ref": "#/definitions/library/properties/versions"
},
"status": {
"$ref": "#/definitions/library/properties/status"
},
"authors": {
"$ref": "#/definitions/library/properties/authors"
},
"assets": {
"$ref": "#/definitions/library/properties/assets"
},
"resources": {
"$ref": "#/definitions/library/properties/resources"
},
"tests": {
"$ref": "#/definitions/library/properties/tests"
},
"download": {
"$ref": "#/definitions/library/properties/download"
},
"gallery": {
"$ref": "#/definitions/library/properties/gallery"
},
"components": {
"$ref": "#/definitions/library/properties/components"
},
"howto_categories": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"steps": {},
"sourceLanguage": {
"type": "string"
},
"category": {
"type": "string"
},
"product_dimensions": {
"type": "string"
},
"production": {
"type": "object",
"properties": {
"fusion-folder": {
"type": "string"
},
"nc-folder": {
"type": "string"
},
"cam": {
"type": "array",
"items": {
"$ref": "#/definitions/library/properties/authors/items"
}
}
},
"required": [
"fusion-folder",
"nc-folder",
"cam"
],
"additionalProperties": false
},
"score": {
"type": "number"
},
"body": {
"type": "string"
},
"features": {
"type": "string"
},
"highlights": {
"type": "string"
},
"specs": {
"type": "string"
},
"license": {
"type": "string"
},
"readme": {
"type": "string"
},
"shared": {
"type": "string"
}
},
"required": [
"code",
"name",
"manufacturing",
"slug",
"category"
],
"additionalProperties": true
},
"default": []
},
"howto_categories": {
"$ref": "#/definitions/library/properties/components/items/properties/howto_categories"
},
"steps": {
"$ref": "#/definitions/library/properties/components/items/properties/steps"
},
"sourceLanguage": {
"$ref": "#/definitions/library/properties/components/items/properties/sourceLanguage"
},
"category": {
"$ref": "#/definitions/library/properties/components/items/properties/category"
},
"product_dimensions": {
"$ref": "#/definitions/library/properties/components/items/properties/product_dimensions"
},
"production": {
"$ref": "#/definitions/library/properties/components/items/properties/production"
},
"score": {
"$ref": "#/definitions/library/properties/components/items/properties/score"
},
"body": {
"$ref": "#/definitions/library/properties/components/items/properties/body"
},
"features": {
"$ref": "#/definitions/library/properties/components/items/properties/features"
},
"highlights": {
"$ref": "#/definitions/library/properties/components/items/properties/highlights"
},
"specs": {
"$ref": "#/definitions/library/properties/components/items/properties/specs"
},
"license": {
"$ref": "#/definitions/library/properties/components/items/properties/license"
},
"readme": {
"$ref": "#/definitions/library/properties/components/items/properties/readme"
},
"shared": {
"$ref": "#/definitions/library/properties/components/items/properties/shared"
}
},
"required": [
"code",
"name",
"manufacturing",
"slug",
"category"
],
"additionalProperties": true
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}