mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-23 03:53:34 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
10 lines
320 B
TypeScript
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'],
|
|
})
|