Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: sanitize regex pattern #126

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
2 checks passed
@Himenon Himenon deleted the fix/santize-string branch February 11, 2024 13:26
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.

Feature Request: adapt name includes parentheses string
1 participant