mirror of
https://github.com/LukeHagar/varsity.git
synced 2025-12-06 04:22:00 +00:00
39 lines
860 B
JSON
39 lines
860 B
JSON
{
|
|
"description": "Product creation data",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["name", "price"],
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 200
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"maxLength": 1000
|
|
},
|
|
"price": {
|
|
"$ref": "../schemas/price-schema.json"
|
|
},
|
|
"category": {
|
|
"$ref": "../schemas/category-schema.json"
|
|
},
|
|
"inventory": {
|
|
"$ref": "../schemas/inventory-schema.json"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|