{ "$schema": "https://schema.dawiso.com/package-schema.json",
    "package": {
        "key": "cust_recipe_tutorial_patch",
        "name": "Recipe Manager Patch",
        "type": "patch",
        "basePackageKey": "cust_recipe_tutorial",
        "dependsOn": [
            {
                "packageKey": "cust_recipe_tutorial"
            }
        ],
        "runAfter": {
            "packageKey": "cust_recipe_tutorial"
        },
        "assets": {
            "attributeTypes": [
                {
                    // First, we create a new attribute type.
                    "action": "add",
                    "key": "calories_count",
                    "name": "Calories Count",
                    "features": [
                        {
                            "key": "is_number"
                        },
                        {
                            "key": "sort_by_number"
                        }
                    ]
                }
            ],
            "objectTypes": [
                {
                    "key": "recipe",
                    "attributeTypes": [
                        {
                            // Then, we assignt the new attribute type to an object type.
                            "action": "add",
                            "key": "calories_count"
                        }
                    ],
                    "templates": {
                        "main": {
                            "rightArea": [
                                {
                                    // We also added the attribute type to the template in a panel.
                                    "action": "add",
                                    "addToEnd": true,
                                    "type": "panel",
                                    "title": "title.panel.calories",
                                    "values": [
                                        {
                                            "type": "attributes",
                                            "values": [
                                                "calories_count"
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    }
                }
            ],
            "translations": [
                {
                    // Finally, we added a translation for the new panel component.
                    "action": "add",
                    "key": "title.panel.calories",
                    "values": [
                        {
                            "languageKey": "en-GB",
                            "name": "Nutritional Value"
                        }
                    ]
                }
            ]
        }
    }
}