MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isDateTimeSchema

Function isDateTimeSchema

src/utils/mcp/elicitationValidation.ts:293–301  ·  view source on GitHub ↗
(
  schema: PrimitiveSchemaDefinition,
)

Source from the content-addressed store, hash-verified

291 * Check if a schema is a date or date-time format that supports NL parsing
292 */
293export function isDateTimeSchema(
294 schema: PrimitiveSchemaDefinition,
295): schema is StringSchema & { format: 'date' | 'date-time' } {
296 return (
297 schema.type === 'string' &&
298 'format' in schema &&
299 (schema.format === 'date' || schema.format === 'date-time')
300 )
301}
302
303/**
304 * Async validation that attempts NL date/time parsing via Haiku

Callers 4

handleNavigationFunction · 0.85
handleTextInputChangeFunction · 0.85
renderFormFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected