createResponseSchemaValidator
createResponseSchemaValidator<
T>(schema,options?): (payload) =>ValidationResult<T>
Defined in: wp-typia-block-runtime/src/schema-test.ts:258
Create a reusable response validator for one generated JSON Schema document.
Type Parameters
Section titled “Type Parameters”T = unknown
Parameters
Section titled “Parameters”schema
Section titled “schema”Generated response *.schema.json document.
options?
Section titled “options?”GeneratedSchemaValidatorOptions = {}
Returns
Section titled “Returns”A shared ValidationResult-shaped validator suitable for smoke tests.
(payload) => ValidationResult<T>