Skip to content

Function: reportSchemaMismatch()

ts
function reportSchemaMismatch(behavior, report): boolean;

Defined in: src/core/schemaMismatch.ts:252

Runs the configured behavior. Returns whether the caller should throw.

Kept here rather than inline in the transport so the decision reads in one place, and so 'throw' is visibly the only branch that ends the request.

Parameters

ParameterType
behaviorSchemaMismatchBehavior
reportSchemaMismatchReport

Returns

boolean