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

Please add custom validation type for Decimal #628

Open
Hetch3t opened this issue May 6, 2024 · 0 comments
Open

Please add custom validation type for Decimal #628

Hetch3t opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Hetch3t
Copy link

Hetch3t commented May 6, 2024

What is the problem this feature would solve?

Support very popular data type Decimal (decimal.js). Currently there is no way to do anything with it, since it's not built-in into TypeBox and Elysia as well.

What is the feature you are proposing to solve the problem?

Since Elysia already provides custom types it shouldn't be hard to add new custom validation type t.Decimal(). Also I believe it would be quite helpful, since, I believe, Decimals are used quite commonly.

What alternatives have you considered?

Custom implementation

@Hetch3t Hetch3t added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant