Fixed Model Content Validation for API 45/51045/1
authorMichael Mokry <mm117s@att.com>
Fri, 8 Jun 2018 13:53:44 +0000 (08:53 -0500)
committerMichael Mokry <mm117s@att.com>
Fri, 8 Jun 2018 14:02:50 +0000 (09:02 -0500)
commit7b9a19e6c101fd834404774a40be51645992cdd5
tree224845804a36606e83092a3d9271bdbd68230e95
parente1bec1e7a8e3be989a81507eee81909314550693
Fixed Model Content Validation for API

This fixes the validation of the content of the model to include
validating parent nodes that are required based on the yaml. Prior to
this we were only validating required child nodes and in some cases this
was causing failures to create a policy.

Change-Id: I2bbef4a671cfc7af8b55b3b3c6454b8cea3a88c9
Issue-ID: POLICY-799
Signed-off-by: Michael Mokry <mm117s@att.com>
ONAP-REST/src/main/java/org/onap/policy/rest/util/PolicyValidation.java