Files
bknd/app/src/ui/routes/tools/mcp/utils.ts

9 lines
260 B
TypeScript

import { Draft2019 } from "json-schema-library";
export function getTemplate(schema: object) {
if (!schema || schema === undefined || schema === null) return undefined;
const lib = new Draft2019(schema);
return lib.getTemplate(undefined, schema);
}