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

Function validateFile

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

Source from the content-addressed store, hash-verified

327}
328
329export const validateFile = ( val ) => {
330 if ( val && !(val instanceof win.File) ) {
331 return "Value must be a file"
332 }
333}
334
335export const validateBoolean = ( val ) => {
336 if ( !(val === "true" || val === "false" || val === true || val === false) ) {

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…