Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

🚜 Update Pydantic models and try to DRY them out #19

Open
jefftriplett opened this issue Feb 6, 2024 · 1 comment
Open

🚜 Update Pydantic models and try to DRY them out #19

jefftriplett opened this issue Feb 6, 2024 · 1 comment

Comments

@jefftriplett
Copy link
Member

What started as a quick fix for us using Pydantic to help us validate our frontmatter files has grown a bit unwieldy.

In our bin/*.py folder we have a bunch of scripts that help us organize and run our conference. Several include copies of the same BaseModel but we never got around to trying to refactor these to work off of the same models.

A quick win would be to refactor some of these files to reference the same set of BaseModels.

@tim-schilling
Copy link
Member

I'd recommend using the process.py models. When I was implementing the integrations for the online platform, those seemed to be the most complete and what I re-used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants