@adobe/helix-shared-config
Advanced tools
Comparing version 10.6.9 to 11.0.0
{ | ||
"name": "@adobe/helix-shared-config", | ||
"version": "10.6.9", | ||
"version": "11.0.0", | ||
"description": "Shared modules of the Helix Project - config", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -196,2 +196,15 @@ /* | ||
} | ||
/** | ||
* Validates the loaded configuration and coerces types and sets defaulst | ||
*/ | ||
async validate() { | ||
await super.validate(); | ||
if (this._document?.errors?.length) { | ||
const detail = this._document.errors.map(({ message }) => (message)).join('\n'); | ||
throw new Error(`Invalid index configuration: | ||
${detail}`); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
201745
2509