Commit b30704ef authored by Devesh's avatar Devesh
Browse files

Add check for invalid ref

parent 6839a055
Pipeline #39803 passed with stages
in 36 minutes and 4 seconds
......@@ -49,13 +49,13 @@ public class SchemaResolver {
JSONObject originalSchema = new JSONObject(schema);
Map<String, String> refSchemas = new HashMap<>();
findAndResolveRef(originalSchema, refSchemas);
JSONObject definition = fetchObjectFromJSON(originalSchema, SchemaConstants.DEFINITIONS);
Map<String, Object> definitionMap = new HashMap<>();
if (definition != null) {
definitionMap = definition.toMap();
}
findAndResolveRef(originalSchema, refSchemas);
for (Map.Entry<String, String> entry : refSchemas.entrySet()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment