Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Beijing Release, Casablanca Release
-
None
-
Policy Casablanca - 1
Description
When calling createPolicy or updatePolicy the validation of the model content is not validating the "required" parent attributes in the request. The recursive call that extracts the child attributes and sets key/value pairs does not recognize the parent attribute if the value is enclosed in { } or [ ] in the JSON of the request. Attached is an email with more detail and an example of the bug. The workaround is to only set child attributes of the parent to be required and not the parent itself.
Attachments
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
51045,1 | Fixed Model Content Validation for API | master | policy/engine | Status: MERGED | +2 | +1 |