File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dist/module/lib/validation Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ const KeywordValidation = {
289
289
const valuePrecision = getPrecision ( value ) ;
290
290
const multiplePrecision = getPrecision ( schema . multipleOf ) ;
291
291
if ( valuePrecision > multiplePrecision ) {
292
- // higher precision of value can never be multiple of value
292
+ // value with higher precision then multipleOf-precision can never be multiple
293
293
return draft . errors . multipleOfError ( {
294
294
multipleOf : schema . multipleOf ,
295
295
value,
@@ -308,7 +308,8 @@ const KeywordValidation = {
308
308
schema
309
309
} ) ;
310
310
}
311
- // also check https://stackoverflow.com/questions/1815367/catch-and-compute-overflow-during-multiplication-of-two-large-integers
311
+ // maybe also check overflow
312
+ // https://stackoverflow.com/questions/1815367/catch-and-compute-overflow-during-multiplication-of-two-large-integers
312
313
return undefined ;
313
314
} ,
314
315
not : ( draft , schema , value , pointer ) => {
You can’t perform that action at this time.
0 commit comments