Open
Description
I modeled a file for my website data and wanted to add the image field type but it throws the following error:
Message: schema is invalid: data/properties/homeImage/type must be equal to one of the allowed values, data/properties/homeImage/type must be array, data/properties/homeImage/type must match a schema in anyOf
This is the code from the frontmatter.json config file:
"frontMatter.data.files": [
{
"id": "websiteData",
"title": "Website Data",
"file": "[[workspace]]/data/website.json",
"fileType": "json",
"labelField": "name",
"schema": {
"title": "Website Data",
"type": "object",
"properties": {
"homeTitle": {
"title": "Home Title",
"name": "homeTitle",
"type": "string"
},
"homeImage": {
"title": "Home Image",
"name": "homeImage",
"type": "image",
"multiple": false,
"isPreviewImage": true
},
"example": {
"title": "Example data",
"type": "string"
}
}
}
}
],
Maybe i'm missing something but i can't find any solutions so far. Best regards and thanks for helping out.