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 29 forks source link

Update pydantic to v2 #294

Closed evalott100 closed 5 months ago

evalott100 commented 5 months ago

Description

Changed event model to use pydantic v2. This is now pinned.

Motivation and Context

Since the release of pydantic v2, we've been doing generation code with pydantic 1. Pydantic 2 allows us to do this with less code.

How Has This Been Tested?

Tested against bluesky itself. So long as the schema match up the runtime code should work the same.