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.

Refactors the exclusion of HTTP methods to ensure case-insensitive matching and supports RegExp for excluded paths.
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