I want to have a JSON Schema with unknown property names in an array of objects. A good example is the meta-data of a web page:
\"meta\": {
\"typ
You can make constraints on properties not explicitly defined. The following schema enforces "meta" to be an array of objects whose properties are of type string:
{
"properties" : {
"meta" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
}
}
}
}
In case you just want to have an array of strings, you may use the following schema:
{
"properties" : {
"meta" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
}
}