File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
src/main/java/com/networknt/schema Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,17 @@ protected boolean hasSubSchema() {
61
61
return subSchema != null ;
62
62
}
63
63
64
-
65
64
protected JsonSchema obainSubSchemaNode (JsonNode schemaNode ){
66
- JsonNode node = schemaNode .get ("id" );
67
- if (node == null ) return null ;
65
+ JsonNode node = schemaNode .get ("id" );
66
+ if (node == null ) return null ;
68
67
69
- try {
70
- JsonSchemaFactory factory = new JsonSchemaFactory ();
71
- URL url = new URL (node .textValue ());
72
- return factory .getSchema (url );
73
- } catch (MalformedURLException e ) {
74
- return null ;
75
- }
68
+ try {
69
+ JsonSchemaFactory factory = new JsonSchemaFactory ();
70
+ URL url = new URL (node .textValue ());
71
+ return factory .getSchema (url );
72
+ } catch (MalformedURLException e ) {
73
+ return null ;
74
+ }
76
75
}
77
76
78
77
public Set <ValidationMessage > validate (JsonNode node ) {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public JsonNode getRefSchemaNode(String ref) {
80
80
node = schemaNode .get (key );
81
81
}
82
82
if (node == null && schema .hasSubSchema ()){
83
- node = schema .getSubSchema ().getRefSchemaNode (ref );
83
+ node = schema .getSubSchema ().getRefSchemaNode (ref );
84
84
}
85
85
}
86
86
}
You can’t perform that action at this time.
0 commit comments