Skip to content

Commit 0c83b0e

Browse files
committed
fix schema validation for extended cubes
1 parent ad11e36 commit 0c83b0e

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
@@ -885,7 +885,11 @@ export class CubeValidator {
885885
}
886886

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

890894
if (result.error != null) {
891895
errorReporter.error(formatErrorMessage(result.error), result.error);

0 commit comments

Comments
 (0)