UNPKG
xsd2json
Version:
latest (1.12.22)
1.12.22
1.12.21
1.12.20
1.12.19
1.12.18
1.12.17
1.12.16
1.12.15
1.12.14
1.12.13
1.12.12
1.12.11
1.12.10
1.12.9
1.12.8
1.12.7
1.12.6
1.12.2
1.12.1
1.12.0
1.11.11
1.11.10
1.11.9
1.11.8
1.11.7
1.11.6
1.11.5
1.11.4
1.11.3
1.11.3-alpha.0
1.11.2
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.0
1.8.0
1.7.14
1.7.13
1.7.12
1.7.11
1.7.10
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.3
1.7.2
1.7.1
1.7.0
1.6.0
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.1
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
Translate an XML Schema into equivalent JSON Schema
github.com/fnogatz/xsd2json
fnogatz/xsd2json
xsd2json
/
test
/
json
/
sequence_element4.json
19 lines
(18 loc)
•
325 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"
$schema
"
:
"http://json-schema.org/draft-04/schema#"
,
"definitions"
: {
"pets"
: {
"type"
:
"object"
,
"properties"
: {
"dog"
: {
"type"
:
"array"
,
"items"
: {
"type"
:
"string"
},
"minItems"
: 1 } },
"required"
: [
"dog"
] } } }