Repository navigation
Optional checksum-aware lookup reference with ValidateBy #2707
PerchAnton
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I maintain RefMint and made a small optional reference-field example using class-validator 0.15.1:
ValidateByregisters a rule, andvalidateSyncchecks a real request class.The case is a reference already used for lookup: a string can have the right shape but a wrong checksum, or belong to another namespace. Five native cases check the printed code, a checksum typo, another namespace, empty input and a non-ASCII lookalike. The raw input is preserved.
Source, commands and limits. This uses the existing extension API; no new built-in validator is requested. A valid code is not authorization, and an application whose existing IDs and search are enough does not need another reference.
All reactions