ray-template/packages/routing/src/json-schema.ts
XiaoDaiGua-Ray 403fdd589a feat!: rebuild Ray Template as a monorepo
Share workspace packages between Ray Admin and the interactive docs.

BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
2026-11-04 14:01:28 +08:00

10 lines
320 B
TypeScript

import { toJsonSchema } from '@valibot/to-json-schema'
import { routeConfigSchema, routeRecordSchema } from './schema.ts'
export const getRouteJsonSchema = () =>
toJsonSchema(routeConfigSchema, {
target: 'draft-2020-12',
definitions: { route: routeRecordSchema },
ignoreActions: ['check', 'finite'],
})