File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/compass-data-modeling/src/utils Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 66 render ,
77 userEvent ,
88} from '@mongodb-js/testing-library-compass' ;
9- import { getFieldsFromSchema } from '../utils /nodes-and-edges' ;
9+ import { getFieldsFromSchema } from './nodes-and-edges' ;
1010
1111describe ( 'getFieldsFromSchema' , function ( ) {
1212 const validateMixedType = async (
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const traverseSchema = ({
2121 } : {
2222 fieldPath : FieldPath ;
2323 fieldTypes : string [ ] ;
24+ fieldSchema : MongoDBJSONSchema ;
2425 } ) => void ;
2526 parentFieldPath ?: FieldPath ;
2627} ) : void => {
@@ -61,6 +62,7 @@ export const traverseSchema = ({
6162 visitor ( {
6263 fieldPath : newFieldPath ,
6364 fieldTypes : types . flat ( ) ,
65+ fieldSchema : field ,
6466 } ) ;
6567
6668 children . flat ( ) . forEach ( ( child ) =>
You can’t perform that action at this time.
0 commit comments