{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "properties": {
        "order": {
            "additionalProperties": false,
            "properties": {
                "customerName": {
                    "type": "string"
                },
                "date": {
                    "pattern": "^([0][1-9]|[1][0-2])-([0][0-9]|[1][0-9]|[2][0-9]|[3][0-1])-20\\d{2}$",
                    "type": "string"
                },
                "drink": {
                    "additionalProperties": false,
                    "properties": {
                        "drinkType": {
                            "enum": [
                                "Latte",
                                "Espresso",
                                "Cappuccino",
                                "Chai",
                                "Tea",
                                "Steamer",
                                "Hot Chocolate"
                            ],
                            "type": "string"
                        },
                        "flavor": {
                            "enum": [
                                "Carmel",
                                "Chocolate",
                                "Hazelnut",
                                "Vanilla",
                                "Peppermint",
                                "White Chocolate"
                            ],
                            "type": "string"
                        },
                        "milk": {
                            "enum": [
                                "Non-Fat",
                                "Whole",
                                "Breve",
                                "Soy",
                                "Almond"
                            ],
                            "type": "string"
                        },
                        "size": {
                            "enum": [
                                "Small",
                                "Medium",
                                "Large",
                                "Extra-Large",
                                "Bucket"
                            ],
                            "type": "string"
                        }
                    },
                    "required": [
                        "drinkType",
                        "size",
                        "milk"
                    ],
                    "type": "object"
                },
                "espressoConCard": {
                    "pattern": "^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$",
                    "type": "string"
                },
                "muffin": {
                    "enum": [
                        "Blueberry",
                        "Double Berry Crumb",
                        "Carrot Cake",
                        "Chocolate Chip",
                        "Double Chocolate Chip",
                        "Cherry Cheesecake",
                        "Cinnamon Cheesecake",
                        "Chocolate Cheesecake",
                        "Banana Nut"
                    ],
                    "type": "string"
                },
                "orderId": {
                    "type": "integer"
                },
                "time": {
                    "pattern": "^([0-2][0-3]|[0-1][0-9])(:[0-5][0-9]){2}$",
                    "type": "string"
                },
                "totalPrice": {
                    "type": "integer"
                }
            },
            "required": [
                "orderId",
                "customerName",
                "date",
                "time",
                "espressoConCard",
                "totalPrice"
            ],
            "type": "object"
        }
    },
    "required": [
        "order"
    ],
    "type": "object"
}