File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -885,13 +885,12 @@ export class CubeValidator {
885885 }
886886
887887 public validate ( cube , errorReporter : ErrorReporter ) {
888-
889888 // Joi schema validation (v17.8-v17.13) doesn't work correctly with custom prototypes
890889 // the workaround found - is to flatten the cube object before passing it to validator
891890 // it's important to include all enumerable keys from own and all prototypes in chain
892891 // that's why for (const key in cube) is used here
893892 const allKeys : string [ ] = [ ] ;
894- // eslint-disable-next-line guard-for-in
893+ // eslint-disable-next-line guard-for-in,no-restricted-syntax
895894 for ( const key in cube ) {
896895 allKeys . push ( key ) ;
897896 }
You can’t perform that action at this time.
0 commit comments