You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently TypeValidator has a loose mode (which is great) but isInteger and isNumeric do not fully comply with numeric literals defined by JSON spec. In particular the following values are not regarded as numbers by JSON (some of them are successfully validated by TypeValidator)
For sure. I have already invited other members who are familiar with the project to review. We can discuss in the PR. I am glad that you have included unit tests to make the usage very clear. Thanks.
Currently
TypeValidator
has a loose mode (which is great) butisInteger
andisNumeric
do not fully comply with numeric literals defined by JSON spec. In particular the following values are not regarded as numbers by JSON (some of them are successfully validated byTypeValidator
)also the following values are all valid numbers as per spec
Note
+1
,0001
is currently successfully validated byTypeValidator
adhering to spec might introduce breaking change for some of existing usersThe text was updated successfully, but these errors were encountered: