-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Standardized Environment Variable Validation #3
Comments
How I envision it: a declarative solution with an env.yml that:
I would be astonished if this functionality didn't already exist as an opensource python library somewhere so some research is in order. |
The closest tool i could find is datamodel_code_generator. But it is a command line tool. I could try and create our own tool for this, based on Pydantic. |
@k-allagbe please outline a bit more of how it would look like with Pydantic |
@rngadam ai-cfia/membrane-backend@adc4410 |
@k-allagbe best that you can a Draft PR so I can start commenting on it early. are we also able to integrate text description for each field and links to references for the doc? and generate configuration documentation from the env.yaml? |
@rngadam ai-cfia/membrane-backend#78 MEMBRANE_FRONTEND:
type: str
field_info:
default: http://localhost:3000
description: <desc> |
ok, but my concern is we decided to both document 1) a description of the field and 2) a link to the dependency documentation. are we able to integrate both here with a single description field? |
Description
The goal is to standardize the way we validate environment variables and configurations.
We need to implement a solution that performs this validation for all critical environment variables, checking aspects such as type, format (e.g., regex for URLs, email addresses), presence of required variables, etc.
Acceptance Criteria
Notes
The text was updated successfully, but these errors were encountered: