aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2022-09-09 13:24:34 +0000
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2022-09-09 13:24:34 +0000
commit01f190043d320af0693a0c31201873754d4242a9 (patch)
treeb2f780fc8044438708637a012ebff3c064ec96df
parent76c38f09e566b09c9879bdd624b6919b6840beed (diff)
Revert "Fix bug in json schema helper"
This reverts commit 76c38f09e566b09c9879bdd624b6919b6840beed. Reason for revert: The bug was not in the code, rather in the schemas defined in the policy implementation. Issue-ID: POLICY-4353 Change-Id: I39b60bc40e8c3be8e5820e7d618ef0c47916056d 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 02aea150c..4896e5d4a 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 Map || object instanceof List);
+ return (object instanceof JsonElement || object instanceof Map || object instanceof List);
}
}