GH-154 Allow override of the descriptor validation link extractor #156
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Address the request in #154 by allowing override of the link extractor used with descriptor validation, defaulting to the current behavior of using
HypermediaDocumentation.halLinks(). Override is done via a field st]et inResourceSnippetParameters, with associated builder methods, and consumed inDescriptorValidatorin place of the previously hard-codedhalLinks()value.I am unsure what tests would be appropriate to add alongside this addition - however, all existing tests pass.
Please note, this is my first attempt at Kotlin in general, and I do not have Kotlin tooling set up - I did these edits by running Gradle wrapper from the command line and with an Atom text editor. I 100% expect I did some stuff wrong and adjustments will be needed, and I am hoping it conforms to whatever formatting standards are expected (I didn't see any contributor documentation, so just tried to mimic the existing code as best I could - if such documents exist and I just missed them, please feel free to point me at them so I can try to address anything in there this PR doesn't conform to).