[SERVER-30741] Adjust the JSON Schema parser to accept both "type" and "bsonType" keywords Created: 18/Aug/17  Updated: 30/Oct/23  Resolved: 24/Aug/17

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Task Priority: Major - P3
Reporter: Kyle Suarez Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Query 2017-09-11
Participants:

 Description   

MongoDB has a richer set of types than JSON. We should update the JSON Schema parser so that the "type" keyword accepts only the primitive types specified in the JSON Schema Core Spec ยง3.5.

Then, we should create a "bsonType" keyword that can accept all of the types of data supported by MongoDB.



 Comments   
Comment by Ramon Fernandez Marina [ 24/Aug/17 ]

Author:

{'username': u'dstorch', 'name': u'David Storch', 'email': u'david.storch@10gen.com'}

Message:SERVER-30741 Add 'bsonType' JSON Schema keyword.

Also changes support for the 'type' keyword to only accept
the primitive types specified in the JSON Schema spec.
Branch:master
https://github.com/mongodb/mongo/commit/bb7eba5303c4ea7b17c2e71f01147dd4501fc80c

Generated at Thu Feb 08 04:24:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.