From 7acf1ed84dbf2843ab5e8650516123a214f17542 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Fri, 12 Jun 2026 22:20:01 +0100 Subject: [PATCH] Fix documentation links in validation errors --- src/configuration/validate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/configuration/validate.js b/src/configuration/validate.js index f0463f3..669a425 100644 --- a/src/configuration/validate.js +++ b/src/configuration/validate.js @@ -11,7 +11,7 @@ function validateConfiguration(configuration, configurationPath) { if (configuration == null || typeof configuration !== 'object') { throw new ServerlessError( `Resolved "${configurationFilename}" does not contain valid osls compose configuration.\n` + - 'Read about osls compose in the documentation: https://github.com/oss-serverless/osls/blob/main/docs/guides/compose.md', + 'Read about osls compose in the documentation: https://github.com/oss-serverless/osls/blob/4.x/docs/guides/compose.md', 'INVALID_NON_OBJECT_CONFIGURATION' ); } @@ -19,7 +19,7 @@ function validateConfiguration(configuration, configurationPath) { if (!hasOwn(configuration, 'services') || !isObject(configuration.services)) { throw new ServerlessError( `Invalid configuration: "${configurationFilename}" must contain "services" property.\n` + - 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/main/docs/guides/compose.md', + 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/4.x/docs/guides/compose.md', 'INVALID_NON_OBJECT_SERVICES_CONFIGURATION' ); } @@ -35,7 +35,7 @@ function validateConfiguration(configuration, configurationPath) { if (!isObject(value)) { throw new ServerlessError( `Invalid configuration: definition of "${key}" service must be an object.\n` + - 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/main/docs/guides/compose.md', + 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/4.x/docs/guides/compose.md', 'INVALID_NON_OBJECT_SERVICE_CONFIGURATION' ); } @@ -73,7 +73,7 @@ function validateConfiguration(configuration, configurationPath) { if (extraProperties.length > 0) { throw new ServerlessError( `Unrecognized property ${extraProperties.join(', ')} in "${configurationFilename}".\n` + - 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/main/docs/guides/compose.md', + 'Read about osls compose configuration in the documentation: https://github.com/oss-serverless/osls/blob/4.x/docs/guides/compose.md', 'INVALID_CONFIGURATION' ); }