Skip to content

fix: sanitize regex pattern #126

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 7 commits into from
Feb 11, 2024
Merged

fix: sanitize regex pattern #126

merged 7 commits into from
Feb 11, 2024

Conversation

Himenon
Copy link
Owner

@Himenon Himenon commented Feb 11, 2024

Summary

closes #125

Sanitize

- convertString(text).replace(/\./g, "$");
+ convertString(text).replace(/[^a-zA-Z0-9_]/g, "$");

Handle MediaType Value

paths:
  /path/to/something:
    post:
      requestBody:
        required: true
        content:
          application/json: {} // => Invalid Schema

Test Plan

@Himenon Himenon merged commit 61399c0 into main Feb 11, 2024
@Himenon Himenon deleted the fix/santize-string branch February 11, 2024 13:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: adapt name includes parentheses string
1 participant