Repository navigation
TypeBox format recipe: checksum-aware lookup references #1743
PerchAnton
started this conversation in
Show and tell
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 made a consumer recipe for TypeBox 1.4.7 (
typebox): register an optional reference validator withFormat.Set, then check a schema usingValue.Check.The small example shows why the format annotation and its implementation are separate: a regular expression can accept a mistyped code whose checksum is invalid. The installed-package tests accept the printed reference and reject a checksum typo, another namespace, empty input and a non-ASCII lookalike, without rewriting the user's text.
Source, commands and limits. I maintain RefMint, used by the custom format in this example. This is an external recipe, not a request for a new built-in format. It does not establish record existence or permission; existing IDs can remain sufficient.
All reactions