File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
core/src/main/java/org/everit/json/schema Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -171,15 +171,6 @@ public Collection<Schema> getSubschemas() {
171
171
return subschemas ;
172
172
}
173
173
174
- private ValidationException getFailure (final Schema schema , final Object subject ) {
175
- try {
176
- schema .validate (subject );
177
- return null ;
178
- } catch (ValidationException e ) {
179
- return e ;
180
- }
181
- }
182
-
183
174
@ Override void accept (Visitor visitor ) {
184
175
visitor .visitCombinedSchema (this );
185
176
}
Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ private static boolean isNull(Object obj) {
109
109
try {
110
110
criterion .validate (subschemas .size (), matchingCount );
111
111
} catch (ValidationException e ) {
112
- throw new ValidationException (combinedSchema ,
112
+ failureReporter . failure ( new ValidationException (combinedSchema ,
113
113
new StringBuilder (e .getPointerToViolation ()),
114
114
e .getMessage (),
115
115
failures ,
116
116
e .getKeyword (),
117
- combinedSchema .getSchemaLocation ());
117
+ combinedSchema .getSchemaLocation ())) ;
118
118
}
119
119
}
120
120
You can’t perform that action at this time.
0 commit comments