spring-projects / spring-projects/spring-hateoas

Ensure ALL active media types are registered with Traverson.

Open
#1,374 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

It would be nice if the library would allow to use Traversion with a freely chosen hypermedia type. This way someone could traverse a hypermedia based API even if it is not build on HAL.

The Traversion class currently loads all TraversonDefaults implementations that are available through the spring factories mechanism. This is working as expected but the static initialization fails if more than one TraversonDefaults implementation is available. And because the HalTraversonDefaults implementation is added/initialized through the library itself another (custom) hypermedia type has now chance to override this behavior.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the Traversion class, TraversonDefaults implementations, and the HalTraversonDefaults initialization through the Spring factories mechanism. Verify how multiple active media types are discovered and registered, then ensure a custom hypermedia type can coexist with HAL without static initialization failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.