Skip to content

Commit 8b8f31f

Browse files
committed
fix schema validation for extended cubes
1 parent 74d3704 commit 8b8f31f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/CubeValidator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,11 @@ export class CubeValidator {
883883
}
884884

885885
public validate(cube, errorReporter: ErrorReporter) {
886-
const result = cube.isView ? viewSchema.validate(cube) : cubeSchema.validate(cube);
886+
const options = {
887+
nonEnumerables: true,
888+
abortEarly: false, // This will allow all errors to be reported, not just the first one
889+
};
890+
const result = cube.isView ? viewSchema.validate(cube, options) : cubeSchema.validate(cube, options);
887891

888892
if (result.error != null) {
889893
errorReporter.error(formatErrorMessage(result.error), result.error);

0 commit comments

Comments
 (0)