@@ -120,7 +120,7 @@ public void buildSearchResponse(Operation operation, HandlerMethod handlerMethod
120
120
ApiResponse apiResponse = new ApiResponse ();
121
121
Type returnType = findSearchReturnType (methodResourceMapping , domainType );
122
122
Content content = genericResponseService .buildContent (openAPI .getComponents (), methodParameterReturn .getParameterAnnotations (), methodAttributes .getMethodProduces (), null , returnType );
123
- springDocDataRestUtils .enhanceResponseContent ( openAPI , resourceMetadata , content , dataRestRepository );
123
+ springDocDataRestUtils .buildTextUriContent ( content );
124
124
apiResponse .setContent (content );
125
125
addResponse200 (apiResponses , apiResponse );
126
126
addResponse404 (apiResponses );
@@ -136,19 +136,18 @@ public void buildSearchResponse(Operation operation, HandlerMethod handlerMethod
136
136
* @param openAPI the open api
137
137
* @param requestMethod the request method
138
138
* @param operationPath the operation path
139
- * @param domainType the domain type
140
139
* @param methodAttributes the method attributes
141
140
* @param dataRestRepository the data rest repository
142
141
* @param resourceMetadata the resource metadata
143
142
*/
144
143
public void buildEntityResponse (Operation operation , HandlerMethod handlerMethod , OpenAPI openAPI , RequestMethod requestMethod ,
145
- String operationPath , Class <?> domainType , MethodAttributes methodAttributes , DataRestRepository dataRestRepository , ResourceMetadata resourceMetadata ) {
144
+ String operationPath , MethodAttributes methodAttributes , DataRestRepository dataRestRepository , ResourceMetadata resourceMetadata ) {
146
145
MethodParameter methodParameterReturn = handlerMethod .getReturnType ();
147
146
Type returnType = getType (methodParameterReturn , requestMethod , dataRestRepository , resourceMetadata );
148
147
ApiResponses apiResponses = new ApiResponses ();
149
148
ApiResponse apiResponse = new ApiResponse ();
150
149
Content content = genericResponseService .buildContent (openAPI .getComponents (), methodParameterReturn .getParameterAnnotations (), methodAttributes .getMethodProduces (), null , returnType );
151
- springDocDataRestUtils .enhanceResponseContent ( openAPI , resourceMetadata , content , dataRestRepository );
150
+ springDocDataRestUtils .buildTextUriContent ( content );
152
151
apiResponse .setContent (content );
153
152
addResponse (requestMethod , operationPath , apiResponses , apiResponse );
154
153
operation .setResponses (apiResponses );
0 commit comments