Saving Plugin with Development Mode Off

I am trying to make changes to a private plugin in DatoCMS, and Iā€™m unable to save changes because the ā€œDevelopment Modeā€ field is required.

I can save the plugin with Development Mode enabled, but I cannot save it with Development Mode disabled.

Here is the API response:

PUT https://site-api.datocms.com/plugins/30534
{
    "data": [
        {
            "id": "306dbb",
            "type": "api_error",
            "attributes": {
                "code": "INVALID_FIELD",
                "details": {
                    "field": "parameters.developmentMode",
                    "code": "VALIDATION_REQUIRED"
                }
            }
        }
    ]
}

Hi @Joshua.Evenson thanks for reporting this! Iā€™ll open a bug issue for the team and Iā€™ll keep you updated

1 Like

Hi @Joshua.Evenson ! Thanks for your report!

Most probably you set the developmentMode parameter to "required": true when configuring your plugin, that means that you can never set it to false.

Unfortunately you cannot edit custom DatoCMS plugins parameter definitions, so I suggest deleting your plugin and create a new one without the "required": true.

Ha thatā€™s exactly it.

To me, that still seems like a bug, because required: true on a boolean field could enforce a true or false value, while disallowing null or undefined. Thatā€™s just my two cents.

Thanks for the help!

Hi @Joshua.Evenson, the issue should now be solved! Sorry for the delay, and thanks for reporting this!