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

Function hasStringFormat

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

Source from the content-addressed store, hash-verified

243}
244
245const hasStringFormat = (
246 schema: PrimitiveSchemaDefinition,
247): schema is StringSchema & { format: string } => {
248 return (
249 schema.type === 'string' &&
250 'format' in schema &&
251 typeof schema.format === 'string'
252 )
253}
254
255/**
256 * Returns a helpful placeholder/hint for a given format

Callers 1

getFormatHintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected