mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-07 02:11:25 +02:00
#197 - Support for multi-dimensional content type fields
This commit is contained in:
+23
-2
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user