Skip to content

Commit a21cb6b

Browse files
Jonas-Isrnewtork
andauthored
Update orchestration/src/main/java/com/sap/ai/sdk/orchestration/ResponseJsonSchema.java
Co-authored-by: Alexander Dümont <[email protected]>
1 parent a4ceb8d commit a21cb6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/ResponseJsonSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static ResponseJsonSchema from(@Nonnull final Type classType) {
8181
.build());
8282
val jsonSchema = generator.generateSchema(classType);
8383
val mapper = new ObjectMapper();
84-
final Map<String, Object> schemaMap = mapper.convertValue(jsonSchema, new TypeReference<>() {});
84+
val schemaMap = mapper.convertValue(jsonSchema, new TypeReference<Map<String,Object>>() {});
8585
val schemaName = ((Class<?>) classType).getSimpleName() + "-Schema";
8686
return new ResponseJsonSchema(schemaMap, schemaName, null, null);
8787
}

0 commit comments

Comments
 (0)