Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-799

Policy API Validation Does Not Validate Required Parent Attributes in the Model


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • Beijing Release, Casablanca Release
    • None

      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.

      RE Policy-OOF pairwise testing is failed.msg

            mmokry mmokry
            mmokry mmokry
            0 Vote for this issue
            2 Start watching this issue