-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementfirst-timers-onlySuitable for fevelopers who are contributing first time in open source development .Suitable for fevelopers who are contributing first time in open source development .good first issuesmall win, trivial, less complex issues. Created to encourage Open Source developmentsmall win, trivial, less complex issues. Created to encourage Open Source developmenthelp wanted
Description
Why
In current version of Stubmatic, we use regular expressions to match & catch HTTP request. Writing regular expression can be an easy task for a developer, but reading and understanding it later is complex.
What
To solve this we're planning to use named regular expressions. E.g.
\authorize\(admin|staff|user)
can be replaced with
\authorize\:role:
How
- Create a set of regular expressions a project may need. Save them in a file
role : (admin|staff|user)
- Load this file when the Stubmatic starts before loading the mappings
- Replace each named regular expression with actual regular expression in mapping loaded into the memory.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementfirst-timers-onlySuitable for fevelopers who are contributing first time in open source development .Suitable for fevelopers who are contributing first time in open source development .good first issuesmall win, trivial, less complex issues. Created to encourage Open Source developmentsmall win, trivial, less complex issues. Created to encourage Open Source developmenthelp wanted