Skip to content

Hateoas fields names mismatch #401

Closed
@jlefebvre-vsct

Description

@jlefebvre-vsct

The naming of the fields does not match the HAL specification draft (link) : the generated documentation (based on EntityModel) and the actual JSON representations are different, e.g. "links" instead of "_links" and using default name "content" instead of the specified one by using @org.springframework.hateoas.server.core.Relation(collectionRelation = "components") on the object class.

I am using Spring-boot 2.2.x and Springdoc-openapi 1.2.30.

The expected behavior is that the generated OpenAPI3 contract matches the effective produced data structure (the purpose of generating from sources 😄).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions