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

Function validateInteger

src/core/utils/index.js:323–327  ·  view source on GitHub ↗
( val )

Source from the content-addressed store, hash-verified

321}
322
323export const validateInteger = ( val ) => {
324 if (!/^-?\d+$/.test(val)) {
325 return "Value must be an integer"
326 }
327}
328
329export const validateFile = ( val ) => {
330 if ( val && !(val instanceof win.File) ) {

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…