3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Fix unknown property validation; fix override validation; be clear about which property is unknown

This commit is contained in:
Dragory 2019-07-22 13:09:05 +03:00
parent 9a7530cf48
commit 28b4541e79
5 changed files with 14 additions and 6 deletions

View file

@ -18,7 +18,7 @@ const guildConfigRootSchema = t.type({
levels: t.record(t.string, t.number),
plugins: t.record(t.string, t.unknown),
});
const partialGuildConfigRootSchema = t.exact(t.partial(guildConfigRootSchema.props));
const partialGuildConfigRootSchema = t.partial(guildConfigRootSchema.props);
const globalConfigRootSchema = t.type({
url: t.string,