Skip to content

Commit

Permalink
"forgotten" boolean return
Browse files Browse the repository at this point in the history
  • Loading branch information
redmitry committed Nov 15, 2023
1 parent 2a207b4 commit 0f4cc0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/es/elixir/bsc/json/schema/model/JsonSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public interface JsonSchema extends JsonSchemaElement {
public final static String RECURSIVE_ANCHOR = "$recursiveAnchor";
public final static String VOCABULARY = "$vocabulary";

void validate(JsonValue value, List<ValidationError> errors, JsonSchemaValidationCallback<JsonValue> callback) throws ValidationException;
boolean validate(JsonValue value, List<ValidationError> errors, JsonSchemaValidationCallback<JsonValue> callback) throws ValidationException;

default void validate(JsonValue value, List<ValidationError> errors) {
validate(value, errors, null);
default boolean validate(JsonValue value, List<ValidationError> errors) {
return validate(value, errors, null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public abstract boolean validate(String jsonPointer, JsonValue value, JsonValue
throws ValidationException;

@Override
public void validate(JsonValue value, List<ValidationError> errors,
public boolean validate(JsonValue value, List<ValidationError> errors,
JsonSchemaValidationCallback<JsonValue> callback)
throws ValidationException {
validate("", value, null, new ArrayList(), errors, callback);
return validate("", value, null, new ArrayList(), errors, callback);
}
}

0 comments on commit 0f4cc0a

Please sign in to comment.