expressCart/lib/schemas/newProduct.json

41 lines
908 B
JSON
Raw Normal View History

{
2019-11-16 09:01:57 +10:00
"$id": "newProduct",
"type": "object",
"properties": {
"productPermalink": {
"type": "string"
},
"productTitle": {
"type": "string"
},
"productPrice": {
2019-11-16 12:22:54 +10:00
"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": [
"productPermalink",
"productTitle",
"productPrice",
"productDescription",
"productPublished"
]
}