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

Disable invalid data generation for masked input fields #43

Closed
thiagodp opened this issue Jun 18, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@thiagodp
Copy link
Owner

commented Jun 18, 2019

A masked input field usually does not accept invalid input data. Usually such components are well tested and we can assume that they work as intended. Therefore, Concordia does not need to generate invalid input data for them. To disable that generation, a new tag could be defined to be used in UI Element's properties. For example:

UI Element: Year
  - data type is integer
  @generate-only-valid-values
  - format is "/^[0-9]{1-3}$/"
    Otherwise I must see "Year must be a number."

In the above example, a tag (@generate-only-valid-values) is used to denote that the property that follows it (format) should never be used to generate invalid input values.

Candidate names for the tag:

  1. @generate-only-valid-values
  2. @generate-no-invalid-values
  3. @valid-values-only
  4. @no-invalid-values

Any suggestions?

@thiagodp

This comment has been minimized.

Copy link
Owner Author

commented Jun 18, 2019

Implemented as @generate-only-valid-values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.