4848
4949import com .fasterxml .jackson .annotation .JsonView ;
5050import com .fasterxml .jackson .core .JsonProcessingException ;
51- import com .fasterxml .jackson .core .type .TypeReference ;
5251import com .fasterxml .jackson .databind .ObjectMapper ;
5352import com .fasterxml .jackson .dataformat .yaml .YAMLFactory ;
5453import com .fasterxml .jackson .dataformat .yaml .YAMLGenerator .Feature ;
6665import io .swagger .v3 .oas .models .media .StringSchema ;
6766import io .swagger .v3 .oas .models .parameters .Parameter ;
6867import io .swagger .v3 .oas .models .responses .ApiResponses ;
69- import io .swagger .v3 .oas .models .servers .Server ;
7068import org .apache .commons .lang3 .ArrayUtils ;
7169import org .apache .commons .lang3 .StringUtils ;
7270import org .slf4j .Logger ;
@@ -379,7 +377,7 @@ protected synchronized OpenAPI getOpenApi(Locale locale) {
379377 protected void calculatePath (HandlerMethod handlerMethod ,
380378 RouterOperation routerOperation , Locale locale , OpenAPI openAPI ) {
381379
382- routerOperation = customiseRouterOperation (routerOperation , handlerMethod );
380+ routerOperation = customizeRouterOperation (routerOperation , handlerMethod );
383381
384382 String operationPath = routerOperation .getPath ();
385383 Set <RequestMethod > requestMethods = new HashSet <>(Arrays .asList (routerOperation .getMethods ()));
@@ -481,7 +479,7 @@ protected void calculatePath(HandlerMethod handlerMethod,
481479 buildCallbacks (openAPI , methodAttributes , operation , apiCallbacks );
482480
483481 // allow for customisation
484- operation = customiseOperation (operation , handlerMethod );
482+ operation = customizeOperation (operation , handlerMethod );
485483
486484 PathItem pathItemObject = buildPathItem (requestMethod , operation , operationPath , paths );
487485 paths .addPathItem (operationPath , pathItemObject );
@@ -842,7 +840,7 @@ protected Set<RequestMethod> getDefaultAllowedHttpMethods() {
842840 * @param handlerMethod the handler method
843841 * @return the operation
844842 */
845- protected Operation customiseOperation (Operation operation , HandlerMethod handlerMethod ) {
843+ protected Operation customizeOperation (Operation operation , HandlerMethod handlerMethod ) {
846844 if (operationCustomizers .isPresent ()) {
847845 List <OperationCustomizer > operationCustomizerList = operationCustomizers .get ();
848846 for (OperationCustomizer operationCustomizer : operationCustomizerList )
@@ -857,7 +855,7 @@ protected Operation customiseOperation(Operation operation, HandlerMethod handle
857855 * @param handlerMethod
858856 * @return the router operation
859857 */
860- protected RouterOperation customiseRouterOperation (RouterOperation routerOperation , HandlerMethod handlerMethod ) {
858+ protected RouterOperation customizeRouterOperation (RouterOperation routerOperation , HandlerMethod handlerMethod ) {
861859 if (routerOperationCustomizers .isPresent ()) {
862860 List <RouterOperationCustomizer > routerOperationCustomizerList = routerOperationCustomizers .get ();
863861 for (RouterOperationCustomizer routerOperationCustomizer : routerOperationCustomizerList ) {
0 commit comments