expressCart/lib/schemas/editProduct.json

39 lines
827 B
JSON

{
"$id": "editProduct",
"type": "object",
"properties": {
"productId": {
"type": "string"
},
"productPermalink": {
"type": "string"
},
"productTitle": {
"type": "string"
},
"productPrice": {
"type": "number"
},
"productDescription": {
"type": "string"
},
"productPublished": {
"type": "boolean"
},
"productTags": {
"type": "string"
},
"productOptions": {
"type": ["object", "string", "null"]
},
"productComment": {
"type": "boolean"
},
"productStock": {
"type": ["number", "null"]
}
},
"required": [
"productId"
]
}