Repository navigation
Document link properties, including HAL profile - #338
Merged
Merged
Conversation
dblock
force-pushed
the
dblock/link-profile
branch
from
November 22, 2026 14:00
d9c16e2 to
a9331c3
Compare
Link#_profile and the other HAL link properties have been supported since 2013 but were undocumented. Document them in the README, add a title and profile to the Oxford demo's places link, and test reading and fetching the profile. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW
dblock
force-pushed
the
dblock/link-profile
branch
from
November 22, 2026 14:04
a9331c3 to
0318928
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #65.
Link#_profile(along with_type,_deprecation,_name,_title, and_hreflang) has existed since 2013 (afcc1cf) and is unit-tested, but none of the link properties were documented. This PR:profileis a URI documenting the target resource's semantics, that Hyperclient returns it as-is without following it (a profile isn't necessarily a HAL resource), and how to fetch it withapi.connectionif needed.placeslink atitleand aprofile(/docs/places, already served by the demo), prints the profile fromexamples/oxford/client.rb, and adds a test that reads_title/_profileand fetches the profile document.No library code changes; resource-level profiles (e.g. a
profilemedia type parameter) and an automatic "follow profile" helper were intentionally left out.Validation:
bundle exec rake(175 minitest runs, spinach, RuboCop) passes locally; the new Oxford example assertions fail without the demo change.🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW