You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
Following on from #1584, the faker generator doesn't support arbitrary regexes.
Acceptance Criteria
A simple regex applied to any (all) faker types, which has one or more valid results, should successfully generate values.
(Optional) Potential approaches to solution
The flaw in the original implementation was to assume the regexRepresentation was a valid regex, particularly after intersections have been applied (see here). The solution would be to either correctly intersect these regexes (which may make them harder to read for debugging), or to find a solution that invokes the automaton with the values pulled down from faker. The latter could be done by creating a new automaton for each value, and intersecting that new automaton with the old one - if this approach is used, performance should be checked carefully.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature Request
Description of Problem
Following on from #1584, the faker generator doesn't support arbitrary regexes.
Acceptance Criteria
(Optional) Potential approaches to solution
The flaw in the original implementation was to assume the
regexRepresentation
was a valid regex, particularly after intersections have been applied (see here). The solution would be to either correctly intersect these regexes (which may make them harder to read for debugging), or to find a solution that invokes the automaton with the values pulled down from faker. The latter could be done by creating a new automaton for each value, and intersecting that new automaton with the old one - if this approach is used, performance should be checked carefully.The text was updated successfully, but these errors were encountered: