Skip to content

Commit 13d395b

Browse files
committed
cleanup
1 parent f623c03 commit 13d395b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/compass-schema-validation/src/modules/validation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)