mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json schema: JsonSchemaReader, simplify code
This commit is contained in:
@@ -139,12 +139,9 @@ public class JsonSchemaReader {
|
||||
if (current.getRef() != null) {
|
||||
final JsonSchemaObject definition = findDefinition(myKey, current.getRef(), root, definitions);
|
||||
if (definition == null) {
|
||||
if (definitions == null) {
|
||||
// just skip current item
|
||||
current.setRef(null);
|
||||
continue;
|
||||
}
|
||||
throw new RuntimeException("Can not find definition: " + current.getRef());
|
||||
// just skip current item
|
||||
current.setRef(null);
|
||||
continue;
|
||||
}
|
||||
if (definition.getRef() != null && !"#".equals(definition.getRef())) {
|
||||
queue.addFirst(current);
|
||||
|
||||
Reference in New Issue
Block a user