Variable PROBLEM_DETAILS_SCHEMAConst
PROBLEM_DETAILS_SCHEMA: Readonly<
{
type: "object";
title: "ProblemDetails";
description: "RFC-9457 Problem Details (application/problem+json).";
properties: {
type: { type: string; format: string; default: string };
title: { type: string };
status: { type: string };
detail: { type: string };
instance: { type: string; format: string };
errors: { type: string; additionalProperties: boolean };
error: { type: string; deprecated: boolean };
};
required: string[];
},
> = ...
The canonical JSON Schema (2020-12) form of ProblemDetails — the
$reftarget @suluk/hono's emit injects intocomponents.schemas.ProblemDetails, so the SDK'sisApiErrortyping and testgen's error-conformance validate against ONE shared schema. Frozen; mirrors the type above.