From 109547e5dd5541e99f4cf8644dd917c8368b6113 Mon Sep 17 00:00:00 2001 From: redmitry Date: Wed, 25 Oct 2023 15:35:29 +0200 Subject: [PATCH] report "absoluteKeywordLocation" in location --- .../ga4gh/beacon/validator/BeaconValidationMessage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconValidationMessage.java b/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconValidationMessage.java index 889e26a..455102a 100644 --- a/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconValidationMessage.java +++ b/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconValidationMessage.java @@ -26,8 +26,7 @@ package es.bsc.inb.ga4gh.beacon.validator; import es.elixir.bsc.json.schema.ValidationError; -import jakarta.json.Json; -import jakarta.json.JsonObjectBuilder; +import java.net.URI; /** * @author Dmitry Repchevsky @@ -43,7 +42,9 @@ public class BeaconValidationMessage { public BeaconValidationMessage(ValidationError error) { this(BeaconValidationErrorType.JSON_SCHEMA_ERROR, error.code, - error.id == null ? null : error.id.toString(), error.path, error.message); + error.id == null ? error.pointer : error.id.getScheme() + ":" + + error.id.getSchemeSpecificPart() + "#" + error.pointer, + error.path, error.message); } public BeaconValidationMessage(BeaconValidationErrorType type, String message) {