From eabf7b68ceaa74e4578a8ac7c30fccb4a6aeb4b6 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sun, 6 Oct 2024 12:17:54 +0200 Subject: [PATCH] Allow a `bref:` section in serverless.yml --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 5f09fe63e..8b26658e1 100644 --- a/index.js +++ b/index.js @@ -52,6 +52,9 @@ class ServerlessPlugin { this.checkCompatibleRuntime(); serverless.configSchemaHandler.schema.definitions.awsLambdaRuntime.enum.push(...this.runtimes); + serverless.configSchemaHandler.defineTopLevelProperty('bref', { + type: 'object', + }); // Declare `${bref:xxx}` variables // See https://www.serverless.com/framework/docs/guides/plugins/custom-variables