MCPcopy Create free account
hub / github.com/ChromeDevTools/chrome-devtools-mcp / isRequired

Function isRequired

scripts/generate-docs.ts:281–291  ·  view source on GitHub ↗
(schema: ZodSchema)

Source from the content-addressed store, hash-verified

279}
280
281function isRequired(schema: ZodSchema): boolean {
282 let def = schema._def;
283 while (def.typeName === 'ZodEffects') {
284 if (!def.schema) {
285 break;
286 }
287 schema = def.schema;
288 def = schema._def;
289 }
290 return def.typeName !== 'ZodOptional' && def.typeName !== 'ZodDefault';
291}
292
293async function generateReference(
294 title: string,

Callers 1

getToolsAndCategoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected