Skip to content

Support force Spring HATEOAS resources to render an empty embedded array in straightforward way #522

Open
@ceefour

Description

@ceefour

This has been requested before: http://stackoverflow.com/questions/30286795/how-to-force-spring-hateoas-resources-to-render-an-empty-embedded-array#comment69331410_30297552

For example, if the array is not rendered, REST clients will break. Handling this edge case by default will require additional coding in all REST clients.

How about extending the constructor?

new Resources<>(Exercise.class, exercises, ...);

is acceptable for me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions