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

Function validateDateTime

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

Source from the content-addressed store, hash-verified

345}
346
347export const validateDateTime = (val) => {
348 if (isNaN(Date.parse(val))) {
349 return "Value must be a DateTime"
350 }
351}
352
353export const validateGuid = (val) => {
354 val = val.toString().toLowerCase()

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…