{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
        "orders": {
            "additionalItems": false,
            "items": {
                "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": {
                        "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"
                            }
                        },
                        "type": "object"
                    },
                    "espressoConCard": {
                        "pattern": "^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$",
                        "type": "string"
                    },
                    "id": {
                        "type": "integer"
                    },
                    "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": {
                        "pattern": "^\\$[0-9]{1,3}.[0-9]{2}$",
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "orderId",
                    "customerName",
                    "drink",
                    "muffin",
                    "date",
                    "time",
                    "espressoConCard",
                    "totalPrice"
                ],
                "type": "object"
            },
            "minItems": 1,
            "type": "array"
        }
    },
    "required": [
        "orders"
    ],
    "type": "object"
}