expressCart/lib/schemas/newDiscount.json

34 lines
631 B
JSON
Raw Normal View History

{
"$id": "newDiscount",
"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": [
"code",
"type",
"value",
"start",
"end"
]
}