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:
parent
9a7530cf48
commit
28b4541e79
5 changed files with 14 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue