|
|
|
|
|
by NeutralForest
332 days ago
|
|
I'm not sure I agree, you can still use Pydantic in the domain model and update the version of the API when you change the expected schemas of your CRUD application. Where I'm with you, is that you should take care of your boundaries and muddling the line between your Pydantic domain models and your CRUD models will be painful at some point. If your domain model is changing fast compared to the API you're exposing, that could be an issue. But that's not a "Pydantic in the domain layer" issue, that's a separation of concerns issue. |
|