Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mherman22 committed Dec 3, 2024
1 parent d4ce8b1 commit 67dbf47
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class SwaggerGenerationUtil {
* @param resourceHandler the resource handler to add
*/
public static void addResourceHandler(DelegatingResourceHandler<?> resourceHandler) {
System.out.println(resourceHandler + " has been added");
resourceHandlers.add(resourceHandler);
}

Expand Down Expand Up @@ -300,7 +299,7 @@ public static Property createPropertyForType(Class<?> type, String operationType
if (resourceName == null) {
return new StringProperty();
}
return new ArrayProperty(new RefProperty("#/definitions/" + StringUtils.capitalize(getResourceNameBySupportedClass(elementType)) + operationType));
return new ArrayProperty(new RefProperty("#/definitions/" + StringUtils.capitalize(resourceName) + operationType));
}
return new ArrayProperty();
} else {
Expand All @@ -312,7 +311,7 @@ public static Property createPropertyForType(Class<?> type, String operationType
* Retrieves the name of a resource or sub-resource associated with a given class.
*
* @param supportedClass the class to find the resource name for
* @return the name of the resource or sub-resource associated with the given class,
* @return the name of the {@link Resource} or {@link SubResource} associated with the given class,
* or "null" if no match is found
*/
public static String getResourceNameBySupportedClass(Class<?> supportedClass) {
Expand Down

0 comments on commit 67dbf47

Please sign in to comment.