Skip to content

Commit

Permalink
report "absoluteKeywordLocation" in location
Browse files Browse the repository at this point in the history
  • Loading branch information
redmitry committed Oct 25, 2023
1 parent fdfcfd9 commit 109547e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 109547e

Please sign in to comment.