$ cd ../
JSON to JSON Schema Generator
Infer clean JSON Schema Draft-07 / 2020-12 validation structures from JSON payload objects.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GeneratedSchema",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"isActive": {
"type": "boolean"
},
"registeredAt": {
"type": "string",
"format": "date-time"
},
"website": {
"type": "string",
"format": "uri"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"profile": {
"type": "object",
"properties": {
"age": {
"type": "integer"
},
"bio": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"country": {
"type": "string"
}
},
"required": [
"city",
"country"
]
}
},
"required": [
"age",
"bio",
"location"
]
}
},
"required": [
"id",
"name",
"email",
"isActive",
"registeredAt",
"website",
"roles",
"profile"
]
}