ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

Schema: Support multiple types in JSON Schema #570

Closed dvstans closed 3 years ago

dvstans commented 3 years ago

According to the spec, fields can have multiple types (an array of types) including NULL.

dvstans commented 3 years ago

Tested and appears to work as-is.

dvstans commented 3 years ago

This must be supported in the DB reference resolution code also.

dvstans commented 3 years ago

The query builder cannot handle multiple types and crashed.

dvstans commented 3 years ago

Changed the query builder to simply use the first type if an array is given.