Skip to content

Commit 74e75d3

Browse files
committed
saving work
1 parent baf525d commit 74e75d3

File tree

84 files changed

+2332
-625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2332
-625
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
import org.springframework.web.method.HandlerMethod;
9595

9696
import static org.springdoc.core.Constants.OPERATION_ATTRIBUTE;
97-
import static org.springdoc.core.Constants.ROUTER_ATTRIBUTE;
9897
import static org.springdoc.core.converters.SchemaPropertyDeprecatingConverter.isDeprecated;
9998

10099
/**
@@ -518,7 +517,7 @@ protected void calculatePath(HandlerMethod handlerMethod, String operationPath,
518517
*/
519518
protected void getRouterFunctionPaths(String beanName, AbstractRouterFunctionVisitor routerFunctionVisitor) {
520519
boolean withRouterOperation = routerFunctionVisitor.getRouterFunctionDatas().stream()
521-
.anyMatch(routerFunctionData -> routerFunctionData.getAttributes().containsKey(ROUTER_ATTRIBUTE) || routerFunctionData.getAttributes().containsKey(OPERATION_ATTRIBUTE));
520+
.anyMatch(routerFunctionData -> routerFunctionData.getAttributes().containsKey(OPERATION_ATTRIBUTE));
522521
if (withRouterOperation) {
523522
List<RouterOperation> operationList = routerFunctionVisitor.getRouterFunctionDatas().stream().map(RouterOperation::new).collect(Collectors.toList());
524523
calculatePath(operationList);

springdoc-openapi-common/src/main/java/org/springdoc/core/AbstractRequestService.java

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ public abstract class AbstractRequestService {
158158
/**
159159
* Instantiates a new Abstract request builder.
160160
*
161-
* @param parameterBuilder the parameter builder
162-
* @param requestBodyService the request body builder
163-
* @param operationService the operation builder
164-
* @param parameterCustomizers the parameter customizers
161+
* @param parameterBuilder the parameter builder
162+
* @param requestBodyService the request body builder
163+
* @param operationService the operation builder
164+
* @param parameterCustomizers the parameter customizers
165165
* @param localSpringDocParameterNameDiscoverer the local spring doc parameter name discoverer
166166
*/
167167
protected AbstractRequestService(GenericParameterService parameterBuilder, RequestBodyService requestBodyService,
@@ -200,7 +200,7 @@ public static void removeRequestWrapperToIgnore(Class<?>... classes) {
200200
/**
201201
* Is request type to ignore boolean.
202202
*
203-
* @param rawClass the raw class
203+
* @param rawClass the raw class
204204
* @return the boolean
205205
*/
206206
public static boolean isRequestTypeToIgnore(Class<?> rawClass) {
@@ -210,11 +210,11 @@ public static boolean isRequestTypeToIgnore(Class<?> rawClass) {
210210
/**
211211
* Build operation.
212212
*
213-
* @param handlerMethod the handler method
214-
* @param requestMethod the request method
215-
* @param operation the operation
216-
* @param methodAttributes the method attributes
217-
* @param openAPI the open api
213+
* @param handlerMethod the handler method
214+
* @param requestMethod the request method
215+
* @param operation the operation
216+
* @param methodAttributes the method attributes
217+
* @param openAPI the open api
218218
* @return the operation
219219
*/
220220
public Operation build(HandlerMethod handlerMethod, RequestMethod requestMethod,
@@ -281,10 +281,10 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
281281
/**
282282
* Gets parameter linked hash map.
283283
*
284-
* @param components the components
285-
* @param methodAttributes the method attributes
286-
* @param operationParameters the operation parameters
287-
* @param parametersDocMap the parameters doc map
284+
* @param components the components
285+
* @param methodAttributes the method attributes
286+
* @param operationParameters the operation parameters
287+
* @param parametersDocMap the parameters doc map
288288
* @return the parameter linked hash map
289289
*/
290290
private LinkedHashMap<String, Parameter> getParameterLinkedHashMap(Components components, MethodAttributes methodAttributes, List<Parameter> operationParameters, Map<String, io.swagger.v3.oas.annotations.Parameter> parametersDocMap) {
@@ -314,8 +314,8 @@ private LinkedHashMap<String, Parameter> getParameterLinkedHashMap(Components co
314314
/**
315315
* Gets headers.
316316
*
317-
* @param methodAttributes the method attributes
318-
* @param map the map
317+
* @param methodAttributes the method attributes
318+
* @param map the map
319319
* @return the headers
320320
*/
321321
@SuppressWarnings("unchecked")
@@ -336,8 +336,8 @@ public static Collection<Parameter> getHeaders(MethodAttributes methodAttributes
336336
/**
337337
* Customise parameter parameter.
338338
*
339-
* @param parameter the parameter
340-
* @param parameterInfo the parameter info
339+
* @param parameter the parameter
340+
* @param parameterInfo the parameter info
341341
* @return the parameter
342342
*/
343343
protected Parameter customiseParameter(Parameter parameter, ParameterInfo parameterInfo) {
@@ -348,7 +348,7 @@ protected Parameter customiseParameter(Parameter parameter, ParameterInfo parame
348348
/**
349349
* Is param to ignore boolean.
350350
*
351-
* @param parameter the parameter
351+
* @param parameter the parameter
352352
* @return the boolean
353353
*/
354354
public boolean isParamToIgnore(MethodParameter parameter) {
@@ -362,7 +362,7 @@ public boolean isParamToIgnore(MethodParameter parameter) {
362362
/**
363363
* Is required annotation boolean.
364364
*
365-
* @param parameter the parameter
365+
* @param parameter the parameter
366366
* @return the boolean
367367
*/
368368
private boolean isRequiredAnnotation(MethodParameter parameter) {
@@ -377,8 +377,8 @@ private boolean isRequiredAnnotation(MethodParameter parameter) {
377377
/**
378378
* Sets params.
379379
*
380-
* @param operation the operation
381-
* @param operationParameters the operation parameters
380+
* @param operation the operation
381+
* @param operationParameters the operation parameters
382382
* @param requestBodyInfo the request body info
383383
*/
384384
private void setParams(Operation operation, List<Parameter> operationParameters, RequestBodyInfo requestBodyInfo) {
@@ -391,7 +391,7 @@ private void setParams(Operation operation, List<Parameter> operationParameters,
391391
/**
392392
* Is valid parameter boolean.
393393
*
394-
* @param parameter the parameter
394+
* @param parameter the parameter
395395
* @return the boolean
396396
*/
397397
public boolean isValidParameter(Parameter parameter) {
@@ -401,10 +401,10 @@ public boolean isValidParameter(Parameter parameter) {
401401
/**
402402
* Build params parameter.
403403
*
404-
* @param parameterInfo the parameter info
405-
* @param components the components
406-
* @param requestMethod the request method
407-
* @param jsonView the json view
404+
* @param parameterInfo the parameter info
405+
* @param components the components
406+
* @param requestMethod the request method
407+
* @param jsonView the json view
408408
* @return the parameter
409409
*/
410410
public Parameter buildParams(ParameterInfo parameterInfo, Components components,
@@ -433,9 +433,9 @@ public Parameter buildParams(ParameterInfo parameterInfo, Components components,
433433
/**
434434
* Build param parameter.
435435
*
436-
* @param parameterInfo the parameter info
437-
* @param components the components
438-
* @param jsonView the json view
436+
* @param parameterInfo the parameter info
437+
* @param components the components
438+
* @param jsonView the json view
439439
* @return the parameter
440440
*/
441441
private Parameter buildParam(ParameterInfo parameterInfo, Components components, JsonView jsonView) {
@@ -472,7 +472,7 @@ private Parameter buildParam(ParameterInfo parameterInfo, Components components,
472472
/**
473473
* Apply bean validator annotations.
474474
*
475-
* @param parameter the parameter
475+
* @param parameter the parameter
476476
* @param annotations the annotations
477477
*/
478478
public void applyBeanValidatorAnnotations(final Parameter parameter, final List<Annotation> annotations) {
@@ -489,8 +489,8 @@ public void applyBeanValidatorAnnotations(final Parameter parameter, final List<
489489
/**
490490
* Apply bean validator annotations.
491491
*
492-
* @param requestBody the request body
493-
* @param annotations the annotations
492+
* @param requestBody the request body
493+
* @param annotations the annotations
494494
* @param isOptional the is optional
495495
*/
496496
public void applyBeanValidatorAnnotations(final RequestBody requestBody, final List<Annotation> annotations, boolean isOptional) {
@@ -516,7 +516,7 @@ public void applyBeanValidatorAnnotations(final RequestBody requestBody, final L
516516
/**
517517
* Calculate size.
518518
*
519-
* @param annos the annos
519+
* @param annos the annos
520520
* @param schema the schema
521521
*/
522522
private void calculateSize(Map<String, Annotation> annos, Schema<?> schema) {
@@ -545,7 +545,7 @@ public RequestBodyService getRequestBodyBuilder() {
545545
/**
546546
* Gets api parameters.
547547
*
548-
* @param method the method
548+
* @param method the method
549549
* @return the api parameters
550550
*/
551551
private Map<String, io.swagger.v3.oas.annotations.Parameter> getApiParameters(Method method) {
@@ -584,7 +584,7 @@ private Map<String, io.swagger.v3.oas.annotations.Parameter> getApiParameters(Me
584584
/**
585585
* Apply validations to schema.
586586
*
587-
* @param annos the annos
587+
* @param annos the annos
588588
* @param schema the schema
589589
*/
590590
private void applyValidationsToSchema(Map<String, Annotation> annos, Schema<?> schema) {

springdoc-openapi-common/src/main/java/org/springdoc/core/ActuatorProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ default Tag getTag() {
6262
/**
6363
* Is rest controller boolean.
6464
*
65-
* @param operationPath the operation path
66-
* @param controllerClass the controller class
65+
* @param operationPath the operation path
66+
* @param controllerClass the controller class
6767
* @return the boolean
6868
*/
6969
default boolean isRestController(String operationPath, Class<?> controllerClass) {

springdoc-openapi-common/src/main/java/org/springdoc/core/Constants.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,11 @@ public final class Constants {
270270
*/
271271
public static final String CSRF_DEFAULT_HEADER_NAME= "X-XSRF-TOKEN";
272272

273+
/**
274+
* The constant OPERATION_ATTRIBUTE.
275+
*/
273276
public static final String OPERATION_ATTRIBUTE = Constants.class.getName() + ".operation";
274277

275-
public static final String ROUTER_ATTRIBUTE = Constants.class.getName() + ".router";
276-
277278
/**
278279
* Instantiates a new Constants.
279280
*/

springdoc-openapi-common/src/main/java/org/springdoc/core/DelegatingMethodParameter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public class DelegatingMethodParameter extends MethodParameter {
7171
/**
7272
* Instantiates a new Delegating method parameter.
7373
*
74-
* @param delegate the delegate
75-
* @param parameterName the parameter name
76-
* @param additionalParameterAnnotations the additional parameter annotations
74+
* @param delegate the delegate
75+
* @param parameterName the parameter name
76+
* @param additionalParameterAnnotations the additional parameter annotations
7777
* @param isParameterObject the is parameter object
7878
*/
7979
DelegatingMethodParameter(MethodParameter delegate, String parameterName, Annotation[] additionalParameterAnnotations, boolean isParameterObject) {
@@ -87,9 +87,9 @@ public class DelegatingMethodParameter extends MethodParameter {
8787
/**
8888
* Customize method parameter [ ].
8989
*
90-
* @param pNames the p names
91-
* @param parameters the parameters
92-
* @param optionalDelegatingMethodParameterCustomizer the optional delegating method parameter customizer
90+
* @param pNames the p names
91+
* @param parameters the parameters
92+
* @param optionalDelegatingMethodParameterCustomizer the optional delegating method parameter customizer
9393
* @return the method parameter [ ]
9494
*/
9595
public static MethodParameter[] customize(String[] pNames, MethodParameter[] parameters, Optional<DelegatingMethodParameterCustomizer> optionalDelegatingMethodParameterCustomizer) {

0 commit comments

Comments
 (0)