jsonschema2ddl
Version:
Convert JSON Schema to DDL
44 lines • 778 B
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Example schema",
"comment": "the root of everything",
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"street_address",
"city",
"state"
]
}
},
"type": "object",
"properties": {
"UserId": {
"type": "integer"
},
"UserName": {
"type": "string"
},
"Sex": {
"type": "string"
},
"Age": {
"type": "integer"
},
"Address": {
"$ref": "#/definitions/address"
}
}
}