Skip to content

Commit 332a9d1

Browse files
committed
replace deprecated
1 parent afd5eef commit 332a9d1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/validator/ValidatorSettings.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,6 @@ public void enableFormats (Format... enable) {
112112
* @param format the format
113113
* @return true if it should be validated, else false
114114
*/
115-
@Deprecated
116-
public boolean validateFormat (Format format) {
117-
return assertFormat(format);
118-
}
119-
120115
public boolean assertFormat (Format format) {
121116
return assertFormat() && formats.contains (format);
122117
}

json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/validator/string/Regex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void validate (JsonSchema schema, JsonInstance instance, ValidationStep p
4646
private boolean shouldValidate (@Nullable String format) {
4747
return format != null
4848
&& format.equals (Format.REGEX.getFormat ())
49-
&& settings.validateFormat (Format.REGEX);
49+
&& settings.assertFormat (Format.REGEX);
5050
}
5151

5252
private String getInstanceValue (JsonInstance instance) {

0 commit comments

Comments
 (0)