-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request