Replies: 1 comment
-
Not sure if I'm blind, but I couldn't find it in the docs either. I am looking now for some method which can dump this internal representation of a type as a json schema. I need it also to store types in database as json. PS. lol import { Type } from '@sinclair/typebox';
const tObject = Type.Object(
{
x: Type.Number(),
},
{
$schema: 'http://example.com/json-schema.json',
description: 'Example'
},
);
console.log(JSON.stringify(tObject, null, 2)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So it can be used by rjsf
Beta Was this translation helpful? Give feedback.
All reactions