mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
json schema. fix schema import
This commit is contained in:
@@ -55,7 +55,7 @@ public class JsonSchemaReader {
|
||||
@NotNull final String string,
|
||||
Consumer<String> errorConsumer) throws IOException {
|
||||
final JsonSchemaReader reader = new JsonSchemaReader(key);
|
||||
final java.io.StringReader stringReader = new java.io.StringReader(string);
|
||||
java.io.StringReader stringReader = new java.io.StringReader(string);
|
||||
try {
|
||||
reader.read(stringReader, null);
|
||||
} catch (Exception e) {
|
||||
@@ -64,6 +64,7 @@ public class JsonSchemaReader {
|
||||
return false;
|
||||
}
|
||||
// have two stages so that just syntax errors do not clear cache
|
||||
stringReader = new java.io.StringReader(string);
|
||||
try {
|
||||
reader.read(stringReader, definitions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user