File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/compass-schema-validation/src/modules Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,6 @@ export const generateValidationRules = (): SchemaValidationThunkAction<
660660 const driverOptions = {
661661 maxTimeMS,
662662 } ;
663- console . log ( 'ANALYZING' ) ;
664663 const schemaAccessor = await analyzeSchema (
665664 dataService ,
666665 abortSignal ,
@@ -674,16 +673,17 @@ export const generateValidationRules = (): SchemaValidationThunkAction<
674673 throw new Error ( abortSignal ?. reason || new Error ( 'Operation aborted' ) ) ;
675674 }
676675
677- console . log ( 'CONVERTING' ) ;
678676 const jsonSchema = await schemaAccessor ?. getMongoDBJsonSchema ( {
679677 signal : abortSignal ,
680678 } ) ;
681679 if ( abortSignal ?. aborted ) {
682680 throw new Error ( abortSignal ?. reason || new Error ( 'Operation aborted' ) ) ;
683681 }
684- console . log ( 'STRINGIFYING' ) ;
685- const validator = JSON . stringify ( jsonSchema , undefined , 2 ) ;
686- console . log ( 'DONE' ) ;
682+ const validator = JSON . stringify (
683+ { $jsonSchema : jsonSchema } ,
684+ undefined ,
685+ 2
686+ ) ;
687687 dispatch ( validationLevelChanged ( 'moderate' ) ) ;
688688 dispatch ( validatorChanged ( validator ) ) ;
689689 dispatch ( enableEditRules ( ) ) ;
You can’t perform that action at this time.
0 commit comments