Skip to content

Commit 0add23e

Browse files
committed
Continue development
1 parent fb55471 commit 0add23e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/OpenAPINormalizer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.swagger.v3.oas.models.responses.ApiResponse;
2828
import io.swagger.v3.oas.models.responses.ApiResponses;
2929
import io.swagger.v3.oas.models.security.SecurityScheme;
30+
import io.swagger.v3.oas.models.security.SecurityScheme.Type;
3031
import org.apache.commons.lang3.StringUtils;
3132
import org.openapitools.codegen.utils.ModelUtils;
3233
import org.slf4j.Logger;
@@ -137,6 +138,9 @@ public class OpenAPINormalizer {
137138
// when set (e.g. operationId:getPetById|addPet), filter out (or remove) everything else
138139
final String FILTER = "FILTER";
139140

141+
// when set (e.g. type:http|oauth2), filter out (or remove) everything else
142+
final String SECURITY_SCHEMES_FILTER = "SECURITY_SCHEMES_FILTER";
143+
140144
// when set (e.g. operationId:getPetById|addPet), filter out (or remove) everything else
141145
final String SET_CONTAINER_TO_NULLABLE = "SET_CONTAINER_TO_NULLABLE";
142146
HashSet<String> setContainerToNullable = new HashSet<>();
@@ -1959,7 +1963,7 @@ protected static abstract class BaseFilter {
19591963
private final String input;
19601964
// Key - filtering method, value - set of accepted values.
19611965
// 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<>();
19631967

19641968
protected BaseFilter(String input) {
19651969
this.input = input.trim();

0 commit comments

Comments
 (0)