Skip to content

PURISTA API


PURISTA API / @purista/core / validationToSchema

Function: validationToSchema()

validationToSchema<T>(schema?): Promise<undefined | SchemaObject>

Defined in: packages/core/src/zodOpenApi/validationToSchema.ts:9

Type Parameters

T

T extends Schema<any, any, any, ""> | ZodType<any, ZodTypeDef, any>

Parameters

schema?

T

Returns

Promise<undefined | SchemaObject>