You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current solution of custom classes, parsing and validation of reqstool yaml files is not core business logic.
It would be nice if we can use a library/tool for that in order to just focus on the business logic.
We can then generate pydantic 2 datamodels from JSON Schemas using datamodel-code-generator.
Using pydantic we can then populate are datamodels by having pydantic parse and validate the data.
It could be helpful to use dynaconf as a preprocessor to get support environment variables and dotenv, integration with HashiCorp Vault and Redis etc.
Pydantic has support for environment variables but both options have to be investigated.
The text was updated successfully, but these errors were encountered:
Summary
Our current solution of custom classes, parsing and validation of reqstool yaml files is not core business logic.
It would be nice if we can use a library/tool for that in order to just focus on the business logic.
Blocked by:
Proposal
Change to datamodel-code-generator and pydantic 2
We can then generate pydantic 2 datamodels from JSON Schemas using datamodel-code-generator.
Using pydantic we can then populate are datamodels by having pydantic parse and validate the data.
It could be helpful to use dynaconf as a preprocessor to get support environment variables and dotenv, integration with HashiCorp Vault and Redis etc.
Pydantic has support for environment variables but both options have to be investigated.
The text was updated successfully, but these errors were encountered: