|
27 | 27 | import io.swagger.v3.oas.models.responses.ApiResponse; |
28 | 28 | import io.swagger.v3.oas.models.responses.ApiResponses; |
29 | 29 | import io.swagger.v3.oas.models.security.SecurityScheme; |
| 30 | +import io.swagger.v3.oas.models.security.SecurityScheme.Type; |
30 | 31 | import org.apache.commons.lang3.StringUtils; |
31 | 32 | import org.openapitools.codegen.utils.ModelUtils; |
32 | 33 | import org.slf4j.Logger; |
@@ -137,6 +138,9 @@ public class OpenAPINormalizer { |
137 | 138 | // when set (e.g. operationId:getPetById|addPet), filter out (or remove) everything else |
138 | 139 | final String FILTER = "FILTER"; |
139 | 140 |
|
| 141 | + // when set (e.g. type:http|oauth2), filter out (or remove) everything else |
| 142 | + final String SECURITY_SCHEMES_FILTER = "SECURITY_SCHEMES_FILTER"; |
| 143 | + |
140 | 144 | // when set (e.g. operationId:getPetById|addPet), filter out (or remove) everything else |
141 | 145 | final String SET_CONTAINER_TO_NULLABLE = "SET_CONTAINER_TO_NULLABLE"; |
142 | 146 | HashSet<String> setContainerToNullable = new HashSet<>(); |
@@ -1959,7 +1963,7 @@ protected static abstract class BaseFilter { |
1959 | 1963 | private final String input; |
1960 | 1964 | // Key - filtering method, value - set of accepted values. |
1961 | 1965 | // For example, to filter operations by method the key would be "method" and the value is a set of {"get", "post"}. |
1962 | | - protected Map<String, Set<String>> filteringMethodsMap; |
| 1966 | + protected Map<String, Set<String>> filteringMethodsMap = new HashMap<>(); |
1963 | 1967 |
|
1964 | 1968 | protected BaseFilter(String input) { |
1965 | 1969 | this.input = input.trim(); |
|
0 commit comments