#197 - Support for multi-dimensional content type fields

This commit is contained in:
Elio Struyf
2022-01-11 12:23:46 +01:00
parent 46a9d6e602
commit 9a91be8025
7 changed files with 137 additions and 41 deletions
+23 -2
View File
@@ -417,6 +417,7 @@
"description": "Specifies the type of content you want to create."
},
"fields": {
"$id": "#contenttypefield",
"type": "array",
"description": "Define the fields of the content type",
"items": {
@@ -435,7 +436,8 @@
"taxonomy",
"tags",
"categories",
"draft"
"draft",
"object"
],
"description": "Define the type of field"
},
@@ -447,6 +449,10 @@
"type": "string",
"description": "Title to show in the UI"
},
"default": {
"type": "string",
"description": "Default value"
},
"choices": {
"type": "array",
"description": "Define your choices",
@@ -494,7 +500,8 @@
"type": "string",
"default": "",
"description": "The ID of your taxonomy field"
}
},
"fields": { "$ref": "#contenttypefield" }
},
"additionalProperties": false,
"required": [
@@ -529,6 +536,20 @@
"choices"
]
}
},
{
"if": {
"properties": {
"type": {
"const": "object"
}
}
},
"then": {
"required": [
"fields"
]
}
}
]
}