Skip to content

Commit 89b7ff0

Browse files
committed
obsolete
1 parent 0cc5fce commit 89b7ff0

File tree

3 files changed

+1
-320
lines changed

3 files changed

+1
-320
lines changed

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

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,53 +18,13 @@ public class ValidationMessage {
1818
private final JsonSchema schema;
1919
private final JsonInstance instance;
2020

21-
@Deprecated
22-
private Collection<ValidationMessage> nestedMessage = Collections.emptyList ();
23-
2421
public ValidationMessage (JsonSchema schema, JsonInstance instance, String property, String text) {
2522
this.property = property;
2623
this.text = text;
2724
this.schema = schema;
2825
this.instance = instance;
2926
}
3027

31-
@Deprecated // no nested messages anymore
32-
public ValidationMessage (
33-
JsonSchema schema,
34-
JsonInstance instance,
35-
String property,
36-
String text,
37-
Collection<ValidationMessage> nestedMessage
38-
) {
39-
this.property = property;
40-
this.text = text;
41-
this.schema = schema;
42-
this.instance = instance;
43-
this.nestedMessage = nestedMessage;
44-
}
45-
46-
@Deprecated // use overload with property
47-
public ValidationMessage (JsonSchema schema, JsonInstance instance, String text) {
48-
this.property = "n/a";
49-
this.text = text;
50-
this.schema = schema;
51-
this.instance = instance;
52-
}
53-
54-
@Deprecated // no nested messages anymore
55-
public ValidationMessage (
56-
JsonSchema schema,
57-
JsonInstance instance,
58-
String text,
59-
Collection<ValidationMessage> nestedMessage
60-
) {
61-
this.property = "n/a";
62-
this.text = text;
63-
this.schema = schema;
64-
this.instance = instance;
65-
this.nestedMessage = nestedMessage;
66-
}
67-
6828
public String getSchemaScope () {
6929
return schema.getContext ().getScope ().toString ();
7030
}
@@ -85,19 +45,9 @@ public String getText () {
8545
return text;
8646
}
8747

88-
@Deprecated
89-
public boolean hasNestedMessages () {
90-
return ! nestedMessage.isEmpty ();
91-
}
92-
93-
@Deprecated
94-
public Collection<ValidationMessage> getNestedMessages () {
95-
return nestedMessage;
96-
}
97-
9848
@Override
9949
public String toString () {
10050
return String.format ("%s (instance: %s) (schema: %s)", text,
10151
getInstancePath (), getSchemaPath ());
10252
}
103-
}
53+
}

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

Lines changed: 0 additions & 46 deletions
This file was deleted.

json-schema-validator/src/test/kotlin/io/openapiprocessor/jsonschema/validator/ValidationMessagePrinterSpec.kt

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)