{
    "$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"
    ]
}