validateGadgetSchema
validateGadgetSchema(
schema,gadgetName):void
Defined in: gadgets/schema-validator.ts:12
Validates that a Zod schema doesn’t contain z.unknown() which produces incomplete JSON schemas without type information.
Parameters
Section titled “Parameters”schema
Section titled “schema”ZodType
The Zod schema to validate
gadgetName
Section titled “gadgetName”string
Name of the gadget (for error messages)
Returns
Section titled “Returns”void
Throws
Section titled “Throws”Error if z.unknown() is detected with helpful suggestions