expressCart/lib/schemas/editProduct.json

40 lines
859 B
JSON

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