bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 30 forks source link

Re-instate compatiblity with jsonschema 2.x. #175

Closed danielballan closed 4 years ago

danielballan commented 4 years ago

Follow-up on #79 which added compatibility for jsonschema 3.x but broke compatibility for 2.x. In this PR, we support both by defining schema_validators conditional on the jsonschema version.

Tested by doing a simple bluesky scan.

Closes #145. See that issue for justification.