Skip to content

Commit c3f38eb

Browse files
committed
fix double definition
1 parent e7e599b commit c3f38eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/schema-convertors/internalToStandard.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ export const RELAXED_EJSON_DEFINITIONS = Object.freeze({
6060
oneOf: [
6161
{ type: 'number' },
6262
{
63-
enum: ['Infinity', '-Infinity', 'NaN']
63+
type: 'object',
64+
properties: {
65+
$numberDouble: {
66+
enum: ['Infinity', '-Infinity', 'NaN']
67+
}
68+
}
6469
}
6570
]
6671
},

0 commit comments

Comments
 (0)