vitalseeds / vs-data-api

Fast API endpoints to expose vs-data actions for to run from Filemaker
MIT License
0 stars 0 forks source link

Use pydantic models for field/table definitions #81

Closed tombola closed 7 months ago

tombola commented 7 months ago

In order to reuse the table definitions later as pydantic validated records, first step is to extend pydantic model for the existing classes, whilst ensuring existing table and field name lookups continue to work.

For lowest cost implementation, this is done by using the default value of the pydantic field, though would hope to make use of field aliases at a later point.

tombola commented 7 months ago

I want to get this merged soon as possible to avoid other branches diverging 🤞