I want to iterate over a JSON file and generate schema for it. I am using GENson tool. Similar to this question JSON Schema Generator Python. But instead of
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"name": {
"type": [
"string"
]
}
},
"required": [
"name"
]
}
I want the output to be:
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"name": {
"type": [
"string"
]
}
}
}
That is: I don't want every property to be required
.