Skip to content

Commit

Permalink
Fix incorrect reported path for switch types when validating types
Browse files Browse the repository at this point in the history
This change requires corresponding change in kaitai_struct_tests repository
  • Loading branch information
Mingun committed Dec 5, 2020
1 parent a9a694a commit 5fd8d4a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ class TypeValidator(specs: ClassSpecs, topClass: ClassSpec) {
throw new ErrorInInput(err, casePath)
}
}
validateDataType(caseType, casePath)
// All properties of types is declared on common level for all variants so
// we don't use `casePath` here
validateDataType(caseType, path)
}
}

Expand Down

0 comments on commit 5fd8d4a

Please sign in to comment.