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

Function getObjectShape

packages/component-sdk/src/schema-validation.ts:319–325  ·  view source on GitHub ↗
(schema: z.ZodTypeAny)

Source from the content-addressed store, hash-verified

317}
318
319function getObjectShape(schema: z.ZodTypeAny): Record<string, z.ZodTypeAny> {
320 const shape = (schema as any).shape;
321 if (typeof shape === 'function') {
322 return shape();
323 }
324 return shape ?? {};
325}

Callers 3

validateComponentSchemaFunction · 0.70
validateParameterSchemaFunction · 0.70
calculateDepthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected