Skip to content

Conversation

@mattwang44
Copy link
Member

@mattwang44 mattwang44 commented Jan 6, 2025

Reason

if the upper limit of the length validator is not given, the error message when violation would be reason: Length of 'abc' must be between 5 and None, which is bizarre.

Changes

make the error message in the format of reason: Length of 'abc' must be greater than or equal to 5 if the upper limit is not given.

Test Scope

Checks

  • Unit tests are included or not applicable.

@mattwang44 mattwang44 force-pushed the update-length-validator-error-msg branch 3 times, most recently from 427415a to f223310 Compare January 6, 2025 09:55
@mattwang44 mattwang44 force-pushed the update-length-validator-error-msg branch from f223310 to 1febe91 Compare January 6, 2025 11:03
@mattwang44 mattwang44 changed the title chore(validator): refine error msg of length validator chore(validator): refine error msg for length validator w/o upper limit Jan 6, 2025
@mattwang44 mattwang44 marked this pull request as ready for review January 6, 2025 11:07
@mattwang44 mattwang44 changed the title chore(validator): refine error msg for length validator w/o upper limit chore(validator): refine error msg for length validator without upper limit Jan 6, 2025
@mattwang44 mattwang44 requested review from CJHwong and pkyosx January 6, 2025 11:08
@mattwang44 mattwang44 requested a review from pkyosx January 7, 2025 07:20
@mattwang44 mattwang44 force-pushed the update-length-validator-error-msg branch from 50f1f2f to ca3eaf7 Compare January 7, 2025 07:31
@mattwang44 mattwang44 merged commit 5bc16a8 into develop Jan 7, 2025
2 checks passed
@mattwang44 mattwang44 deleted the update-length-validator-error-msg branch January 7, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants