Skip to content

Use correct boolean type for JSON Schema creation #4220

Closed
@crisaltmann

Description

@crisaltmann

Hello,

After this PR which modifies the boolean type on JsonSchemaObject, I started to receive the error below when trying to add a schema validator on a collection.

log: {"ok": 0.0, "errmsg": "Unknown type name alias: bool", "code": 2, "codeName": "BadValue"}

My mongo version is 5.0. The BSON type is bool but the Json type remains boolean

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions