#314 - HalLinkDiscoverer now also works for URI rels.
Relation names can be fully qualified URIs. HalLinkDiscoverer now quotes the relation name handed into the constructor so that the expression parsing works as expected.
This commit is contained in:
@@ -27,6 +27,6 @@ import org.springframework.hateoas.core.JsonPathLinkDiscoverer;
|
||||
public class HalLinkDiscoverer extends JsonPathLinkDiscoverer {
|
||||
|
||||
public HalLinkDiscoverer() {
|
||||
super("$._links..%s..href", MediaTypes.HAL_JSON);
|
||||
super("$._links..['%s']..href", MediaTypes.HAL_JSON);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user