variable rfc7807Formatter
Since 0.1.0
Deprecated

RFC 7807 was obsoleted by RFC 9457. Use rfc9457Formatter instead, or the 'rfc9457' format alias. The emitted body is identical, so migrating changes nothing on the wire. Will be removed in v1.0.0.

Format validation issues as RFC 7807 Problem Details.

Examples

Example 1

// Before
app.register(ValidationPlugin({ errorFormat: 'rfc7807' }));
// After — byte-identical response
app.register(ValidationPlugin({ errorFormat: 'rfc9457' }));

Type

Usage

import { rfc7807Formatter } from "validation-plugin/src/index.ts";