This PR extends unknown method errors with a hint that suggests the closest method from the ones available based on the fuzzy string matching algorithm used to make similar suggestions. This recommendation uses the "limited" version of the fuzzy matching algorithm to avoid suggestions which wouldn't be too helpful. To put it simply, this PR is like #1280 but for methods.
Resolves #246
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
[x] A bug fix or other functionality change requiring a patch to cedar-policy.
I confirm that this PR (choose one, and delete the other options):
[x] Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).
I confirm that cedar-spec (choose one, and delete the other options):
[x] Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.
Description of changes
This PR extends unknown method errors with a hint that suggests the closest method from the ones available based on the fuzzy string matching algorithm used to make similar suggestions. This recommendation uses the "limited" version of the fuzzy matching algorithm to avoid suggestions which wouldn't be too helpful. To put it simply, this PR is like #1280 but for methods.
Resolves #246
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy
.I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):