-
Notifications
You must be signed in to change notification settings - Fork 472
EmbeddedMapper private but used in public constructor #433
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
Comments
Existing media types aren't really designed for external usage. It's primarily to support HAL-FORMS (and other tentative HAL extensions), which is in another package as well as the other modules of Spring HATEOAS that need to instantiate things. That being said, we have designed an SPI to register your own media types. See #833. |
that's too bad because the existing one has no way to force a single link to be represented as a link array with a single entry in the output json..so if you add a second link later clients that are tightly coupled to the json contract complain that an object became an array. |
@drdamour – Would you mind checking the options available on |
hey look at spring-hateoas/src/main/java/org/springframework/hateoas/mediatype/hal/HalConfiguration.java Line 99 in a89e57e
thanks |
It's pretty new, so don't be too harsh on yourself 🙃. Happy coding! |
yeah if you added support for #175 i could use the OOTB one |
https://github.com/spring-projects/spring-hateoas/blob/master/src/main/java/org/springframework/hateoas/hal/Jackson2HalModule.java#L121
having a tough time working with this new serializer, this one in particular is difficult...how can i create my own embedded mapper?
The text was updated successfully, but these errors were encountered: