Skip to content
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

feat: new functions to cast values to correct type #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlexanderLukin
Copy link

In many application repositories, we have an environmental variable validation engine. It is typical for this engine to have code that needs to transform incoming environmental variable values to values of a specific type. These tasks are repeatable in many projects:
lidofinance/ethereum-validators-monitoring#224
https://github.com/lidofinance/node-operators-widget-backend-ts/pull/41
lidofinance/lido-keys-api#216

It makes sense to move this repeated code from many projects to some common place.

The new "transform" module introduced in this PR collects these common transformation functions.

In many application repositories, we have an environmental variable
validation engine. It is typical for this engine to have code that needs
to transform incoming environmental variable values to values of a
specific type. These tasks are repeatable in many projects:
lidofinance/ethereum-validators-monitoring#224
lidofinance/node-operators-widget-backend-ts#41
lidofinance/lido-keys-api#216

It makes sense to move this repeated code from many projects to some
common place.

The new "transform" module introduced in this PR collects these common
transformation functions.
@AlexanderLukin AlexanderLukin requested a review from eddort March 19, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants