UNPKG
schema2typebox
Version:
latest (1.7.6)
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.3
1.1.2
1.0.1
1.0.0
0.2.0
0.1.0
Creates typebox code from JSON schemas
github.com/xddq/schema2typebox
xddq/schema2typebox
schema2typebox
/
examples
/
ref-to-remote-files
/
cat.json
16 lines
(15 loc)
•
229 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"title"
:
"Cat"
,
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"const"
:
"cat"
}
,
"name"
:
{
"type"
:
"string"
,
"maxLength"
:
100
}
}
,
"required"
:
[
"type"
,
"name"
]
}