Bug Report Checklist
Description
If you use filter of operationIds and configure this in OpenApiNormalizer in a plugin such as the one from maven you might want to use newlines to make it more readable, but this is not supported at the moment.
openapi-generator version
Latest 7.10.0
Generation Details
<openapiNormalizer> FILTER=operationId: addPet| getPetById </openapiNormalizer>
Steps to reproduce
Use openapiNormalizer and FILTER and set them on separate lines.
Expected the operationIdFilters to contain addPet and getPetById.
Actually the operationIdFilters contains addPet and \n\t\t\t\t\t\t\tgetPetById
Related issues/PRs
Not what I can find
Suggest a fix
Instead of
operationIdFilters = new HashSet<>(Arrays.asList(filterStrs[1].split("[|]")));
use
Arrays.stream(filterStrs[1].split("[|]")) .filter(Objects::nonNull) .map(String::trim) .collect(Collectors.toSet());
Bug Report Checklist
Description
If you use filter of operationIds and configure this in OpenApiNormalizer in a plugin such as the one from maven you might want to use newlines to make it more readable, but this is not supported at the moment.
openapi-generator version
Latest 7.10.0
Generation Details
<openapiNormalizer> FILTER=operationId: addPet| getPetById </openapiNormalizer>Steps to reproduce
Use openapiNormalizer and FILTER and set them on separate lines.
Expected the operationIdFilters to contain addPet and getPetById.
Actually the operationIdFilters contains addPet and \n\t\t\t\t\t\t\tgetPetById
Related issues/PRs
Not what I can find
Suggest a fix
Instead of
operationIdFilters = new HashSet<>(Arrays.asList(filterStrs[1].split("[|]")));use
Arrays.stream(filterStrs[1].split("[|]")) .filter(Objects::nonNull) .map(String::trim) .collect(Collectors.toSet());