Skip to content

Commit d922418

Browse files
committed
address PR comments
1 parent c3f38eb commit d922418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/schema-convertors/internalToStandard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ describe('internalSchemaToStandard', async function() {
958958
$ref: '#/$defs/DBRef'
959959
},
960960
decimal: {
961-
$ref: '#/$defs/Decimal'
961+
$ref: '#/$defs/Decimal128'
962962
},
963963
double: {
964964
$ref: '#/$defs/Double'

src/schema-convertors/internalToStandard.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export const InternalTypeToStandardTypeMap: Record<
2424
DBRef: { $ref: '#/$defs/DBRef' },
2525
DBPointer: { $ref: '#/$defs/DBPointer' },
2626
BSONSymbol: { $ref: '#/$defs/BSONSymbol' },
27-
Symbol: { $ref: '#/$defs/BSONSymbol' },
2827
Code: { $ref: '#/$defs/Code' },
28+
CodeWScope: { $ref: '#/$defs/Code' },
2929
Int32: { type: 'integer' },
3030
Timestamp: { $ref: '#/$defs/Timestamp' },
3131
Long: { type: 'integer' },
32-
Decimal128: { $ref: '#/$defs/Decimal' },
32+
Decimal128: { $ref: '#/$defs/Decimal128' },
3333
MinKey: { $ref: '#/$defs/MinKey' },
3434
MaxKey: { $ref: '#/$defs/MaxKey' }
3535
};
@@ -176,7 +176,7 @@ export const RELAXED_EJSON_DEFINITIONS = Object.freeze({
176176
type: 'string'
177177
},
178178
$id: {
179-
$ref: '#/$defs/Decimal'
179+
$ref: '#/$defs/ObjectId'
180180
}
181181
},
182182
required: ['$ref', '$id'],

0 commit comments

Comments
 (0)