ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

Metadata validation error with negative numbers without leading zero #728

Open dvstans opened 3 years ago

dvstans commented 3 years ago

Javascript technically requires the leading zero for negative numbers > -1; however, all browsers allow it (because that's what humans are more likely to type). Need to find/fix this issue either inside the validator, or try to fix the input to avoid the error.

dvstans commented 3 years ago

This error happens during schema creation/update (i.e. schema contains numeric constraint) and during record metadata validation (numeric value)