Skip to content

Commit

Permalink
fix double definition
Browse files Browse the repository at this point in the history
  • Loading branch information
paula-stacho committed Feb 5, 2025
1 parent e7e599b commit c3f38eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/schema-convertors/internalToStandard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ export const RELAXED_EJSON_DEFINITIONS = Object.freeze({
oneOf: [
{ type: 'number' },
{
enum: ['Infinity', '-Infinity', 'NaN']
type: 'object',
properties: {
$numberDouble: {
enum: ['Infinity', '-Infinity', 'NaN']
}
}
}
]
},
Expand Down

0 comments on commit c3f38eb

Please sign in to comment.