This is an automated email from the ASF dual-hosted git repository.

jsinovassinnaik pushed a commit to branch UNOMI-775-add-validation-endpoint
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to 
refs/heads/UNOMI-775-add-validation-endpoint by this push:
     new 25a109eb4 feedback 2
25a109eb4 is described below

commit 25a109eb43884b5af13eb4b3b5ad79fdb19499fc
Author: jsinovassin <[email protected]>
AuthorDate: Tue May 2 15:48:14 2023 +0200

    feedback 2
---
 .../src/main/java/org/apache/unomi/schema/impl/SchemaServiceImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/impl/SchemaServiceImpl.java
 
b/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/impl/SchemaServiceImpl.java
index d4b695a4d..8b21679cb 100644
--- 
a/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/impl/SchemaServiceImpl.java
+++ 
b/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/impl/SchemaServiceImpl.java
@@ -114,7 +114,7 @@ public class SchemaServiceImpl implements SchemaService {
 
     @Override
     public Set<ValidationError> validateEvent(String event) throws 
ValidationException {
-        return validateNodeEvent(parseData(event));
+        return validateEvents("[" + event 
+"]").entrySet().iterator().next().getValue();
     }
 
     @Override

Reply via email to