Skip to content

Conversation

antlanc7
Copy link

@antlanc7 antlanc7 commented Sep 19, 2025

After the OpenAPI refactor, I found two issues related to the exclude option:

  1. exclude.methods case sensitivity
    Previously, the excludeMethods array elements were provided in uppercase. After the refactor, in the implementation the path method is converted to lowercase before comparison with excluded elements, which broke the functionality.
    This fix ensures that the provided array is normalized to lowercase as well, so users can supply exclude.methods in any case format.

  2. exclude.paths regex support
    According to the type definitions, exclude.paths should accept both strings and regular expressions. However, the implementation only handled string equality, ignoring regex patterns.
    This PR adds proper handling for regex values.

@antlanc7 antlanc7 changed the title Fix exclude option regression (methods normalization + regex support) Fix regex in excludePaths option Sep 22, 2025
@antlanc7
Copy link
Author

Noticed that the 0.4.10 release fixed the casing issue. Updated the PR to just re-enable the regex support in excludePaths array.

@antlanc7 antlanc7 changed the title Fix regex in excludePaths option [Regression] Re-enable regex support in excludePaths array Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant