3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 00:05:04 +00:00

Fix API config validation not taking default options into account

This commit is contained in:
Dragory 2020-07-28 23:28:26 +03:00
parent b59d2f961e
commit c0716a8d7d
3 changed files with 8 additions and 4 deletions

View file

@ -40,6 +40,7 @@ export function getPluginConfigPreprocessor(
? decodeAndValidateStrict(blueprint.configSchema, options.config)
: options.config;
if (decodedConfig instanceof StrictValidationError) {
console.log("o", options);
throw decodedConfig;
}