[SOLVED] Error on save object with array

I have error on save:

  • [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

i can’t save the object with array. I constantly encounter an error:

* .iv: Invalid json type, expected array of objects.

Expected behavior

Minimal reproduction of the problem

You need to create a new project and add an object with this schema

{
"previewUrls": {},
"properties": {
    "validateOnPublish": false
},
"scripts": {},
"isPublished": true,
"fieldRules": [],
"fieldsInLists": [],
"fieldsInReferences": [],
"fields": [
    {
        "name": "items",
        "properties": {
            "isRequired": false,
            "isRequiredOnPublish": false,
            "isHalfWidth": false,
            "fieldType": "Array",
            "calculatedDefaultValue": "EmptyArray"
        },
        "isLocked": false,
        "isHidden": false,
        "isDisabled": false,
        "partitioning": "invariant",
        "nested": [
            {
                "name": "title",
                "properties": {
                    "isRequired": false,
                    "isRequiredOnPublish": false,
                    "isHalfWidth": false,
                    "fieldType": "String",
                    "createEnum": false,
                    "editor": "Input",
                    "inlineEditable": false,
                    "isEmbeddable": false,
                    "isUnique": false,
                    "contentType": "Unspecified"
                },
                "isLocked": false,
                "isHidden": false,
                "isDisabled": false
            }
        ]
    }
],
"type": "Default"
}

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Thank you. I will fix that tomorrow.

This topic was automatically closed after 2 days. New replies are no longer allowed.