It appears that the documentation either lost content or omits how to configure arrays in the data screen. I have the following configuration in data/files/kurzschnitte.json:
{
"$schema": "https://frontmatter.codes/config/data.files.schema.json",
"id": "kurzschnitte",
"title": "Kurzschnitte",
"file": "[[workspace]]/data/dnb/kollitsch/kurzschnitte.json",
"fileType": "json",
"labelField": "title",
"singleEntry": false,
"schema": {
"title": "Kurzschnitte",
"type": "object",
"required": [
"title",
"link",
"slug"
],
"properties": {
"title": {
"type": "string",
"title": "Title"
},
"link": {
"type": "string",
"title": "Link"
},
"description": {
"type": "string",
"multiline": true,
"title": "Description"
},
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"slug": {
"type": "string",
"title": "Kurzschnitt-Post"
},
}
}
}
The screen shows the Labels field, but nothing happens on click. I would expect a string field to be added.
The documentation has nothing about array types that I can find. The samples also contain only string fields, so the label configuration is something I have from a config file from around 1 or 2 years ago.
What is the proper way to configure array fields?
It appears that the documentation either lost content or omits how to configure arrays in the data screen. I have the following configuration in
data/files/kurzschnitte.json:{ "$schema": "https://frontmatter.codes/config/data.files.schema.json", "id": "kurzschnitte", "title": "Kurzschnitte", "file": "[[workspace]]/data/dnb/kollitsch/kurzschnitte.json", "fileType": "json", "labelField": "title", "singleEntry": false, "schema": { "title": "Kurzschnitte", "type": "object", "required": [ "title", "link", "slug" ], "properties": { "title": { "type": "string", "title": "Title" }, "link": { "type": "string", "title": "Link" }, "description": { "type": "string", "multiline": true, "title": "Description" }, "labels": { "type": "array", "items": { "type": "string" } }, "slug": { "type": "string", "title": "Kurzschnitt-Post" }, } } }The screen shows the Labels field, but nothing happens on click. I would expect a string field to be added.
The documentation has nothing about array types that I can find. The samples also contain only string fields, so the label configuration is something I have from a config file from around 1 or 2 years ago.
What is the proper way to configure array fields?