Are you an LLM? You can read better optimized documentation at /documentation/api/core/functions/registerJsonSchemaConverter.md for this page in Markdown format
ws-asyncapi API / core / registerJsonSchemaConverter
Function: registerJsonSchemaConverter()
registerJsonSchemaConverter(
vendor,convert):void
Defined in: .api-entries/core/index.d.ts:198
Register a JSON Schema converter, keyed by ~standard.vendor, for validators that can validate but can't emit JSON Schema themselves. Call once at startup:
ts
import { toJsonSchema } from "@valibot/to-json-schema";
import { registerJsonSchemaConverter } from "ws-asyncapi";
registerJsonSchemaConverter("valibot", (s) => toJsonSchema(s as never));Parameters
vendor
string
convert
Returns
void