expressCart/lib/schemas/editProduct.json

40 lines
859 B
JSON
Raw Normal View History

{
2019-11-16 09:01:57 +10:00
"$id": "editProduct",
"type": "object",
"properties": {
2019-06-20 13:14:04 +10:00
"productId": {
"type": "string"
},
"productPermalink": {
"type": "string"
},
"productTitle": {
"type": "string"
},
"productPrice": {
"type": "string",
2019-11-16 12:22:54 +10:00
"format": "amount"
},
"productDescription": {
"type": "string"
},
"productPublished": {
"type": "boolean"
},
"productTags": {
"type": "string"
},
"productOptions": {
"type": ["object", "string", "null"]
},
"productComment": {
"type": "boolean"
},
"productStock": {
"type": ["number", "null"]
}
},
"required": [
2019-06-20 13:14:04 +10:00
"productId"
]
}