Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce HalFormsConfiguration API to sort properties. #1284

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gregturn
Copy link
Contributor

No description provided.

@gregturn gregturn force-pushed the issue/HATEOAS-1114 branch 4 times, most recently from c30ead9 to e12d5c2 Compare April 30, 2020 20:38
Register various patterns of sorting based on types.
@gregturn gregturn force-pushed the issue/HATEOAS-1114 branch from e12d5c2 to 81f8501 Compare May 1, 2020 14:12
Copy link
Member

@odrotbohm odrotbohm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to avoid the exposure of the type on InputPayloadMetadata. What if we made the HalFormsConfiguration expose something that exposes a Collector per type, so that the PayloadMetadata implementation based on a type could look up the property order and sort the Stream<PropertyMetadata> returned from PayloadMetadata.stream() accordingly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants