mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
Bot now connects, lint fixes
This commit is contained in:
parent
d0a1beb809
commit
edcfd2333f
16 changed files with 29 additions and 24 deletions
|
@ -123,7 +123,7 @@ export function decodeAndValidateStrict<T extends t.HasProps>(
|
|||
err => report(validationResult),
|
||||
result => {
|
||||
// Make sure there are no extra properties
|
||||
if (debug)
|
||||
if (debug) {
|
||||
console.log(
|
||||
"JSON.stringify() check:",
|
||||
JSON.stringify(value) === JSON.stringify(result)
|
||||
|
@ -131,6 +131,7 @@ export function decodeAndValidateStrict<T extends t.HasProps>(
|
|||
: "they are not the same, might have excess",
|
||||
result,
|
||||
);
|
||||
}
|
||||
if (JSON.stringify(value) !== JSON.stringify(result)) {
|
||||
const diff = deepDiff(result, value);
|
||||
const errors = diff.filter(d => d.kind === "N").map(d => `Unknown property <${d.path.join(".")}>`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue