MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isAnyOrUnknown

Function isAnyOrUnknown

packages/component-sdk/src/schema-validation.ts:299–302  ·  view source on GitHub ↗

* Check if schema is z.any() or z.unknown()

(schema: z.ZodTypeAny)

Source from the content-addressed store, hash-verified

297 * Check if schema is z.any() or z.unknown()
298 */
299function isAnyOrUnknown(schema: z.ZodTypeAny): boolean {
300 const typeName = getSchemaType(schema);
301 return typeName === 'any' || typeName === 'unknown';
302}
303
304/**
305 * Check if schema is a primitive type

Callers 1

validateComponentSchemaFunction · 0.85

Calls 1

getSchemaTypeFunction · 0.70

Tested by

no test coverage detected