mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
36 stars 33 forks source link

SQL-775: Handle all JsonSchema polymorphic fields #92

Closed nbagnard closed 2 years ago

nbagnard commented 2 years ago

Transform "items" field values to a set of MongoJsonSchema and "additionalProperties" to a boolean value.

@rychipman, @bucaojit : It seems that "items" is only used to know if isAny should return true or false. And, even there, the only information used is whether "items" is null or not. I am not sure if we need to convert "items" to a set of MongoJsonSchema or if we could not simply convert it to a boolean value (tracking if items is null or not) and use the boolean value in isAny.

nbagnard commented 2 years ago

evergreen merge