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

Add Validation to Collection Variable Modal #184

Open
SoulKa opened this issue Jan 20, 2025 · 0 comments
Open

Add Validation to Collection Variable Modal #184

SoulKa opened this issue Jan 20, 2025 · 0 comments
Labels
enhancement New feature or request frontend Frontend related task good first issue Good for newcomers
Milestone

Comments

@SoulKa
Copy link
Collaborator

SoulKa commented Jan 20, 2025

Is your feature request related to a problem? Please describe.
The pattern detection for template variables in the request body (e.g. {{SOME_variable}}) currently uses \w+ as regex (only letters, digits and underscore). The collection variable modal however, allows setting any variable name as key (e.g. some-variable).

Describe the solution you'd like
We need validation for the variable keys to only allow the same regex used for the template variable detection. Either the "save" button is disabled for invalid input, or the input field only allows numbers, characters, and underscore.

@SoulKa SoulKa added enhancement New feature or request frontend Frontend related task labels Jan 20, 2025
@SoulKa SoulKa added this to the v0.2 milestone Jan 20, 2025
@SoulKa SoulKa added the good first issue Good for newcomers label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Frontend related task good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant