expressCart/lib/schemas/editDiscount.json

30 lines
573 B
JSON

{
"$id": "editDiscount",
"type": "object",
"properties": {
"code": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"amount",
"percent"
]
},
"value": {
"type": "number"
},
"start": {
"type": "object",
"format" : "datetime"
},
"end": {
"type": "object",
"format" : "datetime"
}
},
"required": [
"discountId"
]
}