Loose matching was added to allow partial key paths to pass the validate_keys validation when used with maybe hashes (#309, #312). This change maintains that behaviour, but prevents paths with partial keys from passing.
Originally, went with a regex solution but it turned out to be pretty sluggish when benchmarked. This version doesn't seem to have any noticeable impact on performance, at least for simple cases I tested.
Fixes #385
Loose matching was added to allow partial key paths to pass the
validate_keys
validation when used withmaybe
hashes (#309, #312). This change maintains that behaviour, but prevents paths with partial keys from passing.Originally, went with a regex solution but it turned out to be pretty sluggish when benchmarked. This version doesn't seem to have any noticeable impact on performance, at least for simple cases I tested.