DiamondLightSource / DiamondLightSource/mx-bluesky

Replace `data_model.py` with auto-generated dataclasses from json schema

Open
#1,419 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4
Forks
5
Avg merge
1d 30m
Merged PRs (30d)
2

Description

See https://github.com/DiamondLightSource/mx-bluesky/pull/1311#discussion_r2478675569

Now that we are no longer dependent on `ispyb-api`, the dataclasses in `data_model.py` can be instead auto-generated from the expeye OpenAPI schema, and we can transform these objects directly to json.

## Acceptance Criteria
* The ispyb data model classes are autogenerated from the openapi schema
* Tests are updated

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.