question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider providing String constants in IanaLinkRelations

See original GitHub issue

Currently, it’s not possible to reuse IanaLinkRelations in use cases such as Relation#collectionRelation due to limitation of annotation attributes that must be compile time constants.

It would be nice if IanaLinkRelations could be extended to provide String constant values in similar manner like in MediaTypes.

If this change is acceptable, I’d be glad to provide a PR.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gregturncommented, Mar 12, 2020

Merged and backported to 1.0.

Thanks @vpavic!

1reaction
gregturncommented, Mar 9, 2020

Please do. You can ask me to then review it if you wish.

PS a test case leveraging it the way you described would look great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IanaLinkRelations (Spring HATEOAS 2.0.0 API)
A String equivalent of CURRENT . static final LinkRelation. DESCRIBED_BY. Refers to a resource providing information about the link's context.
Read more >
Should a string constant be defined if it's only going to be used ...
we provide all constants in the beginning of the class (again, this is subjective to my teams standards, may be yours does not)....
Read more >
mework.hateoas.spring-hateoas.1.2.1.source-code.changelog ...
#1216 - Consider providing String constants in IanaLinkRelations. - #1215 - Update RFC-5988 references to RFC-8288. - #1208 - Migrate from Lombok's @Wither ......
Read more >
Index (Spring HATEOAS 1.2.0 API) - Javadoc.io
A String equivalent of IanaLinkRelations. ... Public constant media type for application/alps+json . ... API to provide HAL curie information for links.
Read more >
spring-projects/spring-hateoas - Gitter
GET) EntityModel<A<?, AType>> findById(@PathVariable String id); ... Could someone give me some assistance in understanding how to test HATEOAS?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found