xsd2json
Version:
Translate an XML Schema into equivalent JSON Schema
41 lines (40 loc) • 671 B
JSON
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"orderid": {
"type": "string"
},
"orderperson": {
"type": "string"
},
"shipto": {
"required": [
"name",
"address",
"city",
"country"
],
"type": "object",
"properties": {
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
}
}
}
},
"required": [
"orderid",
"orderperson",
"shipto"
],
"type": "object"
}