Skip to content

Wrong @ManyToOne relationship naming  #861

Closed
@marcel-steinbach-mpf

Description

@marcel-steinbach-mpf

Describe the bug
for relationships like /entity/{id}/childProperty, spring doc creates the childProperty name based on the type instead of the name

To Reproduce
https://github.com/marcel-steinbach-mpf/springdoc-data-rest

Expected behavior

    @ManyToOne
    @JoinColumn(name = "child_property_id")
    private ChildProperty myChildPropertyName;

should be:

    "/properties/{id}/myChildPropertyName": {

but is:

    "/properties/{id}/childProperty": {

Additional context
related to #792

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