@@ -187,24 +187,10 @@ public JsonSchema getSchema(String schema, SchemaValidatorsConfig config) {
187
187
}
188
188
}
189
189
190
- public JsonSchema getSchema (URL schemaUrl , String schema , SchemaValidatorsConfig config ) {
191
- try {
192
- final JsonNode schemaNode = mapper .readTree (schema );
193
- return newJsonSchema (schemaUrl , schemaNode , config );
194
- } catch (IOException ioe ) {
195
- logger .error ("Failed to load json schema!" , ioe );
196
- throw new JsonSchemaException (ioe );
197
- }
198
- }
199
-
200
190
public JsonSchema getSchema (String schema ) {
201
- return getSchema (null , schema , null );
191
+ return getSchema (schema , null );
202
192
}
203
193
204
- public JsonSchema getSchema (URL schemaUrl , String schema ) {
205
- return getSchema (schemaUrl , schema , null );
206
- }
207
-
208
194
public JsonSchema getSchema (InputStream schemaStream , SchemaValidatorsConfig config ) {
209
195
try {
210
196
final JsonNode schemaNode = mapper .readTree (schemaStream );
@@ -215,24 +201,10 @@ public JsonSchema getSchema(InputStream schemaStream, SchemaValidatorsConfig con
215
201
}
216
202
}
217
203
218
- public JsonSchema getSchema (URL schemaUrl , InputStream schemaStream , SchemaValidatorsConfig config ) {
219
- try {
220
- final JsonNode schemaNode = mapper .readTree (schemaStream );
221
- return newJsonSchema (schemaUrl , schemaNode , config );
222
- } catch (IOException ioe ) {
223
- logger .error ("Failed to load json schema!" , ioe );
224
- throw new JsonSchemaException (ioe );
225
- }
226
- }
227
-
228
204
public JsonSchema getSchema (InputStream schemaStream ) {
229
- return getSchema (null , schemaStream , null );
205
+ return getSchema (schemaStream , null );
230
206
}
231
207
232
- public JsonSchema getSchema (URL schemaUrl , InputStream schemaStream ) {
233
- return getSchema (schemaUrl , schemaStream , null );
234
- }
235
-
236
208
public JsonSchema getSchema (URL schemaURL , SchemaValidatorsConfig config ) {
237
209
try {
238
210
InputStream inputStream = null ;
@@ -271,14 +243,6 @@ public JsonSchema getSchema(JsonNode jsonNode, SchemaValidatorsConfig config) {
271
243
public JsonSchema getSchema (JsonNode jsonNode ) {
272
244
return newJsonSchema (null , jsonNode , null );
273
245
}
274
-
275
- public JsonSchema getSchema (URL schemaUrl , JsonNode jsonNode , SchemaValidatorsConfig config ) {
276
- return newJsonSchema (schemaUrl , jsonNode , config );
277
- }
278
-
279
- public JsonSchema getSchema (URL schemaUrl , JsonNode jsonNode ) {
280
- return newJsonSchema (schemaUrl , jsonNode , null );
281
- }
282
246
283
247
private boolean idMatchesSourceUrl (JsonMetaSchema metaSchema , JsonNode schema , URL schemaUrl ) {
284
248
0 commit comments