This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch eventValidationEndPoint
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/eventValidationEndPoint by
this push:
new b86c18f56 UNOMI-754: new jsonSchema endpoint to be able to validate
events and get validation error message
b86c18f56 is described below
commit b86c18f56d2af9afc0416ff43fd1b10e04037905
Author: Kevan <[email protected]>
AuthorDate: Thu Mar 23 10:32:11 2023 +0100
UNOMI-754: new jsonSchema endpoint to be able to validate events and get
validation error message
---
.../src/main/java/org/apache/unomi/schema/api/SchemaService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/api/SchemaService.java
b/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/api/SchemaService.java
index 176c8f4f5..2690f5ba8 100644
---
a/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/api/SchemaService.java
+++
b/extensions/json-schema/services/src/main/java/org/apache/unomi/schema/api/SchemaService.java
@@ -58,7 +58,7 @@ public interface SchemaService {
* perform a validation on the given event
*
* @param event the event to validate
- * @return true is the event is valid
+ * @return The list of validation errors in case there is some, empty list
otherwise
* @throws ValidationException in case something goes wrong and validation
could not be performed.
*/
Set<ValidationError> validateEvent(String event) throws
ValidationException;