@forge/manifest

13.8.013.8.1-next.0
out/schema/manifest-schema.json
~out/schema/manifest-schema.jsonModified
+74−4
Index: package/out/schema/manifest-schema.json
===================================================================
--- package/out/schema/manifest-schema.json
+++ package/out/schema/manifest-schema.json
@@ -1016,12 +1016,33 @@
                                 "description": "Whether this function is used for GDPR cleanup (default false). If set to true, this function has a higher rate limit for ESS list queries.",
                                 "title": "cleanup",
                                 "type": "boolean"
                             },
+                            "$defs": {
+                                "description": "Values shared by local references within this function extension.  A value cannot itself be a reference.",
+                                "type": "object",
+                                "propertyNames": {
+                                    "type": "string",
+                                    "pattern": "^[A-Za-z0-9._-]+$"
+                                },
+                                "additionalProperties": {
+                                    "not": {
+                                        "type": "object",
+                                        "required": [
+                                            "$ref"
+                                        ]
+                                    }
+                                }
+                            },
                             "outboundAuthContainerId": {
-                                "maxLength": 1024,
-                                "minLength": 1,
-                                "type": "string"
+                                "oneOf": [
+                                    {
+                                        "$ref": "#/definitions/OutboundAuthContainerId"
+                                    },
+                                    {
+                                        "$ref": "#/definitions/LocalRef"
+                                    }
+                                ]
                             },
                             "functions": {
                                 "description": "A collection where the key represents the region name and the value contains the metadata of the function, including the lambda ARN and Runtime.",
                                 "type": "object",
@@ -1029,8 +1050,13 @@
                                     "type": "object",
                                     "properties": {
                                         "function": {
                                             "type": "object",
+                                            "not": {
+                                                "required": [
+                                                    "$ref"
+                                                ]
+                                            },
                                             "properties": {
                                                 "name": {
                                                     "type": "string"
                                                 }
@@ -1042,16 +1068,26 @@
                                                     "$ref": "#/definitions/RuntimeLayer"
                                                 },
                                                 {
                                                     "$ref": "#/definitions/RuntimeWrapper"
+                                                },
+                                                {
+                                                    "$ref": "#/definitions/LocalRef"
                                                 }
                                             ]
                                         }
                                     }
                                 }
                             },
                             "providers": {
-                                "$ref": "#/definitions/ExternalAuthFunctionProviders"
+                                "oneOf": [
+                                    {
+                                        "$ref": "#/definitions/ExternalAuthFunctionProviders"
+                                    },
+                                    {
+                                        "$ref": "#/definitions/LocalRef"
+                                    }
+                                ]
                             },
                             "timeoutSeconds": {
                                 "description": "The maximum amount of time the function is allowed to run, in seconds. Must be between 1 and 900.",
                                 "maximum": 900,
@@ -35415,8 +35451,13 @@
             ]
         },
         "RuntimeLayer": {
             "type": "object",
+            "not": {
+                "required": [
+                    "$ref"
+                ]
+            },
             "properties": {
                 "identifier": {
                     "type": "string"
                 },
@@ -35441,8 +35482,13 @@
             ]
         },
         "RuntimeWrapper": {
             "type": "object",
+            "not": {
+                "required": [
+                    "$ref"
+                ]
+            },
             "properties": {
                 "identifier": {
                     "type": "string"
                 },
@@ -35462,8 +35508,27 @@
                 "identifier",
                 "wrapper"
             ]
         },
+        "OutboundAuthContainerId": {
+            "maxLength": 1024,
+            "minLength": 1,
+            "type": "string"
+        },
+        "LocalRef": {
+            "description": "A named reference to a value in this extension's $defs.",
+            "type": "object",
+            "additionalProperties": false,
+            "properties": {
+                "$ref": {
+                    "type": "string",
+                    "pattern": "^[A-Za-z0-9._-]+$"
+                }
+            },
+            "required": [
+                "$ref"
+            ]
+        },
         "ExternalAuthFunctionProvider": {
             "type": "object",
             "additionalProperties": false,
             "properties": {
@@ -35489,8 +35554,13 @@
         },
         "ExternalAuthFunctionProviders": {
             "type": "object",
             "description": "A list of the providers required by the function.",
+            "not": {
+                "required": [
+                    "$ref"
+                ]
+            },
             "properties": {
                 "auth": {
                     "type": "array",
                     "description": "A list of keys or objects referencing authentication providers.",