When using nested attributes which have a 'types' value of '["string", "null"]', policy validation errors are thrown when trying to create a managed object.
- Install IDM 7.0.1
- Copy the attached managed.json file to the conf directory
- Use the following cURL request to cause the error:
This will return:
Where the string provided in the request for updateTaskState/lastCompletedData is marked as not matching the allowed types (string, null)
This seems to be caused by the following line in policy.js (279):
Which returns the allowed types as an object. For non-nested attributes, this value looks like:
Whereas with the nested attributes, this is:
Which causes the check on line 307 to return true instead of false and throw the validTypes policy response.