Skip to content

Commit

Permalink
Merge branch 'master' into 8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 6, 2025
2 parents 02091cb + 16d2407 commit bca1f14
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/schema/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,7 @@ class SchemaMap extends SchemaType {

const isRequired = this.options.required && typeof this.options.required !== 'function';
const result = createJSONSchemaTypeDefinition('object', 'object', useBsonType, isRequired);

if (embeddedSchemaType.schema) {
result.additionalProperties = useBsonType
? { ...embeddedSchemaType.toJSONSchema(options) }
: { ...embeddedSchemaType.toJSONSchema(options) };
} else {
result.additionalProperties = embeddedSchemaType.toJSONSchema(options);
}
result.additionalProperties = embeddedSchemaType.toJSONSchema(options);

return result;
}
Expand Down

0 comments on commit bca1f14

Please sign in to comment.