aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2022-09-07 11:35:58 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2022-09-07 11:36:03 -0400
commit76c38f09e566b09c9879bdd624b6919b6840beed (patch)
treebeeab1b35675b305baacd4b350c263851e3c0ba4
parentce6a02b869743c3abfcff62f585e7d05e22e2412 (diff)
Fix bug in json schema helper
Fixing a bug in json schema helper where it tries to pass through JsonElement and not attempting to compare the incoming object with schema. Issue-ID: POLICY-4353 Change-Id: I0ec8f6a8ec3723bca796e8cf43b6ec9164fbf582 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
-rw-r--r--plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java
index 4896e5d4a..02aea150c 100644
--- a/plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java
+++ b/plugins/plugins-context/plugins-context-schema/plugins-context-schema-json/src/main/java/org/onap/policy/apex/plugins/context/schema/json/JsonSchemaHelper.java
@@ -117,6 +117,6 @@ public class JsonSchemaHelper extends AbstractSchemaHelper {
* @return true if it's a straight pass through
*/
private boolean passThroughObject(final Object object) {
- return (object instanceof JsonElement || object instanceof Map || object instanceof List);
+ return (object instanceof Map || object instanceof List);
}
}