Skip to content

Commit

Permalink
fix schema parse error (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M authored Apr 8, 2024
1 parent f6e5a81 commit b12a2da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static Map<String, String> retrieveYamlFieldWithDescriptions(InputStream

final Map<String, Object> parsedJsonSchema = gson.fromJson(inputStreamReader, type);

final Map<String, Object> definitions = (Map<String, Object>) parsedJsonSchema.get("definitions");
final Map<String, Object> definitions = (Map<String, Object>) parsedJsonSchema.get("$defs");
for (Map.Entry<String, Object> definitionEntry : definitions.entrySet()) {
final Map<String, Map> properties = ((Map<String, Map>) definitionEntry.getValue()).get("properties");

Expand Down

0 comments on commit b12a2da

Please sign in to comment.