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 generate fake data for field, that contains pattern and maxlength… #15272

Merged
merged 7 commits into from
Jun 13, 2021
Merged

fix generate fake data for field, that contains pattern and maxlength… #15272

merged 7 commits into from
Jun 13, 2021

Conversation

TranQuangTienSA
Copy link
Contributor

… validations

Fix generate fake data for field, that contains pattern and maxlength validations.

Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (bellow reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@TranQuangTienSA
Copy link
Contributor Author

Sample

entity Order {
    currency String required maxlength(3) pattern(/^[A-Z]{3}$/)
}

@mshima
Copy link
Member

mshima commented Jun 12, 2021

@tientq check if this approach works for you.

@TranQuangTienSA
Copy link
Contributor Author

entity Order {
    currency String required maxlength(3) pattern(/^[A-Z]{3}$/)
    phone String maxlength(20) pattern(/^(0[0-9]{9}|)$/)
}

Please try this JDL, it's not working for field phone.

@mshima mshima merged commit 9e24a1c into jhipster:main Jun 13, 2021
@pascalgrimaud pascalgrimaud added this to the 7.1.0 milestone Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants