54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"$id": "schemas/range.schema.json",
|
|
"title": "Range",
|
|
"description": "A range from Showroom Bo",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "The unique identifier for a range",
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"name": {
|
|
"description": "Nom de la gamme",
|
|
"type": "string"
|
|
},
|
|
"slug": {
|
|
"description": "Slug de la gamme",
|
|
"type": "string"
|
|
},
|
|
"picture": {
|
|
"description": "Logo de la gamme, chemin tel que présent dans le zip",
|
|
"type": "string"
|
|
},
|
|
"brand_id": {
|
|
"description": "Clé étrangère de la marque",
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"products": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "product.schema.json"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"slug",
|
|
"picture",
|
|
"brand_id",
|
|
"created_at",
|
|
"updated_at",
|
|
"products"
|
|
]
|
|
}
|