Use patternProperties
{
"$schema": "http://json-schema.org/draft-6/schema#",
"type": "object",
"properties": {
"shipping_address": {
"patternProperties": {
"^.*$": {
"properties": {
"haha":{
"type":"integer"
}
}
}
}
}
}
}
You can try something like this:
{
"id": "my-schema",
"type": "object",
"properties": {
"objects": {
"type": "object",
"patternProperties": {
"[a-z]+": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"id",
"name"
]
}
}
}
}
}