MCPcopy
hub / github.com/swagger-api/swagger-ui / validateMinimum

Function validateMinimum

src/core/utils/index.js:311–315  ·  view source on GitHub ↗
( val, min )

Source from the content-addressed store, hash-verified

309}
310
311export const validateMinimum = ( val, min ) => {
312 if (val < min) {
313 return `Value must be greater than or equal to ${min}`
314 }
315}
316
317export const validateNumber = ( val ) => {
318 if (!/^-?\d+(\.?\d+)?$/.test(val)) {

Callers 2

utils.jsFile · 0.90
validateValueBySchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…