We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pattern string sampler fails maxLength constraint when pattern contains nested unlimited quantifiers and produce an unexpected error
Pass the schema to sample as follows:
sample
sample({ maxLength: 55, minLength: 0, format: 'pattern', pattern: '^[A-Za-z0-9._%-]+@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{1,4}$', type: 'string' });
Error reported:
Sample string cannot be generated by boundaries: minLength=0, maxLength=55, format=pattern
Sample value generated successfully
[email protected]
The text was updated successfully, but these errors were encountered:
fix(sampler): able to sample pattern format with nested infinite quan…
c610687
…tifiers and max-length constraint closes #246
fix(sampler): fix formatting
f7b7513
closes #246
fix(openapi-sampler): address pr comments
3f97800
fix(openapi-sampler): fix formatting
3db8fda
d124319
2b19177
ostridm
Successfully merging a pull request may close this issue.
Description
Pattern string sampler fails maxLength constraint when pattern contains nested unlimited quantifiers and produce an unexpected error
Steps to reproduce
Pass the schema to
sample
as follows:Actual result
Error reported:
Expected result
Sample value generated successfully
The text was updated successfully, but these errors were encountered: