Validator should report serialized field name 20/121620/1
authorJim Hahn <jrh3@att.com>
Tue, 1 Jun 2021 14:18:13 +0000 (10:18 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 1 Jun 2021 14:20:05 +0000 (10:20 -0400)
commit8bec395a3d4ddff8bd0daca685f3e2162a9b5193
treeff412a95747101f66c6fea34fa2bc9c75c0e8a14
parent3da8ab1419980bf747214fe164659568a428cb0f
Validator should report serialized field name

The validator reports field names as they appear in the class rather
than as they appear on the wire, which may be confusing to the client.
Modified the code to use the serialized name instead.
Note: this will require tweaks to some junits in some of the other
policy repos.

Issue-ID: POLICY-3333
Change-Id: I867dafdc87cd78dec3d3c6fe0236a744284314a3
Signed-off-by: Jim Hahn <jrh3@att.com>
common-parameters/pom.xml
common-parameters/src/main/java/org/onap/policy/common/parameters/FieldValidator.java
common-parameters/src/test/java/org/onap/policy/common/parameters/TestFieldValidator.java