Default value does not work with objects

I’m currently fixing some bugs in a new feature and ran into an issue with the beta feature “Manage workflow schema”. Previously, the related object and its keys were optional — if they weren't sent in the payload, the system would automatically assign the default value / to the key. After marking the field as required once, I can’t remove the requirement anymore. Now, when I omit the object from the payload, I get the following error:
{
"path": "/primaryAction/redirect/url",
"message": "must match pattern \"^(?!mailto:)(?:(https?):\\/\\/[^\\s/$.?#].[^\\s]*)|^(\\/[^\\s]*)$\""
}
{
"path": "/primaryAction/redirect/url",
"message": "must match pattern \"^(?!mailto:)(?:(https?):\\/\\/[^\\s/$.?#].[^\\s]*)|^(\\/[^\\s]*)$\""
}
This didn’t happen before, since the default / value was applied automatically when the key wasn’t provided. Has anyone experienced this with the “Manage workflow schema” beta? Is there a way to revert the field to optional while keeping the default value behavior?
5 Replies
Pawan Jain
Pawan Jain2w ago
Hi Luiz

We fixed this in development environment, could you please check from your end and sync to production if required redirectUrl field is now optional
Luiz Carvalho
Luiz CarvalhoOP2w ago
I'm not having good experiences with the new feature, it has impeded our progress with the use of the tool, would it be possible to disable this "Manage workflow schema" feature for our workflows?
Pawan Jain
Pawan Jain2w ago
Hi Luiz,

I am checking if it is possible to disable this feature. Could you please share few feedbacks on what can be improved in this feature?
Luiz Carvalho
Luiz CarvalhoOP7d ago
Hi Pawan Yes, the context is that I'm migrating from a personal account I had created to a business account with my professional email, where we'll be switching to the paid plan. I had already tested everything on the previous account and it worked fine, but after creating the new account, the new feature in question appeared, and now nothing is working as before, especially the part related to default values and required fields. The same payload that used to work no longer works, this caused crashes and delays for us.
Pawan Jain
Pawan Jain7d ago
Thanks, Luiz, for sharing. Until we have an option to disable this option from dashboard, can I unblock your team with any other issue so that you can migrate to new account ?

Did you find this page helpful?