3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +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 a3f423a1d6
commit a2d5bb51a7
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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;
}