@forge/manifest

13.8.0-next.513.8.0-next.6
out/schema/manifest-schema.json
~out/schema/manifest-schema.jsonModified
+106
Index: package/out/schema/manifest-schema.json
===================================================================
--- package/out/schema/manifest-schema.json
+++ package/out/schema/manifest-schema.json
@@ -2979,8 +2979,61 @@
                                 "type": "string",
                                 "minLength": 1,
                                 "maxLength": 255
                             },
+                            "migration": {
+                                "type": "object",
+                                "properties": {
+                                    "from": {
+                                        "type": "array",
+                                        "minItems": 1,
+                                        "items": {
+                                            "type": "string",
+                                            "minLength": 1,
+                                            "maxLength": 255,
+                                            "pattern": "^[a-zA-Z0-9-_]+$"
+                                        }
+                                    },
+                                    "migrate": {
+                                        "anyOf": [
+                                            {
+                                                "additionalProperties": false,
+                                                "type": "object",
+                                                "properties": {
+                                                    "function": {
+                                                        "type": "string",
+                                                        "minLength": 1,
+                                                        "maxLength": 255,
+                                                        "pattern": "^[a-zA-Z0-9-_]+$"
+                                                    }
+                                                },
+                                                "required": [
+                                                    "function"
+                                                ]
+                                            },
+                                            {
+                                                "additionalProperties": false,
+                                                "type": "object",
+                                                "properties": {
+                                                    "endpoint": {
+                                                        "type": "string",
+                                                        "minLength": 1,
+                                                        "maxLength": 255,
+                                                        "pattern": "^[a-zA-Z0-9-_]+$"
+                                                    }
+                                                },
+                                                "required": [
+                                                    "endpoint"
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                },
+                                "required": [
+                                    "from",
+                                    "migrate"
+                                ]
+                            },
                             "key": {
                                 "$ref": "#/definitions/ModuleKeySchema"
                             }
                         },
@@ -3187,8 +3240,61 @@
                                     "native"
                                 ],
                                 "type": "string"
                             },
+                            "migration": {
+                                "type": "object",
+                                "properties": {
+                                    "from": {
+                                        "type": "array",
+                                        "minItems": 1,
+                                        "items": {
+                                            "type": "string",
+                                            "minLength": 1,
+                                            "maxLength": 255,
+                                            "pattern": "^[a-zA-Z0-9-_]+$"
+                                        }
+                                    },
+                                    "migrate": {
+                                        "anyOf": [
+                                            {
+                                                "additionalProperties": false,
+                                                "type": "object",
+                                                "properties": {
+                                                    "function": {
+                                                        "type": "string",
+                                                        "minLength": 1,
+                                                        "maxLength": 255,
+                                                        "pattern": "^[a-zA-Z0-9-_]+$"
+                                                    }
+                                                },
+                                                "required": [
+                                                    "function"
+                                                ]
+                                            },
+                                            {
+                                                "additionalProperties": false,
+                                                "type": "object",
+                                                "properties": {
+                                                    "endpoint": {
+                                                        "type": "string",
+                                                        "minLength": 1,
+                                                        "maxLength": 255,
+                                                        "pattern": "^[a-zA-Z0-9-_]+$"
+                                                    }
+                                                },
+                                                "required": [
+                                                    "endpoint"
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                },
+                                "required": [
+                                    "from",
+                                    "migrate"
+                                ]
+                            },
                             "key": {
                                 "$ref": "#/definitions/ModuleKeySchema"
                             }
                         },