Skip to content

Enhance validation for min and max fields#119

Open
7inh wants to merge 2 commits into
eclipse-autowrx:mainfrom
7inh:feat/extendedapi-validation-update
Open

Enhance validation for min and max fields#119
7inh wants to merge 2 commits into
eclipse-autowrx:mainfrom
7inh:feat/extendedapi-validation-update

Conversation

@7inh
Copy link
Copy Markdown

@7inh 7inh commented Jan 27, 2026

Joi's default number() validator is designed to accept only "safe" numbers within JavaScript's safe integer range (from Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER), which is approximately ±9 quadrillion. Since values of -3.4e38 and 3.4e38 fall outside this range. To fix it, use the unsafe() method to allow numbers outside the safe range

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.

1 participant