-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codefeatureNew functionality or improvementNew functionality or improvement
Milestone
Description
Feature request for a breaking change. Joi version 4.9.0
I'm not sure if this is the desired behaviour or not. It seems to me like Infinity should be rejected just like NaN.
This seems a bit awkward in order to validate that the value is a finite number:
joi.number().invalid(Infinity, -Infinity)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing codefeatureNew functionality or improvementNew functionality or improvement