springdoc / springdoc-openapi

Library for OpenAPI 3 with spring-boot

Home Page:https://springdoc.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Using the builder setter and setting JsonProperty Access will result in enumerating recursively the current type

fangzhengjin opened this issue · comments

Describe the bug

Using the builder setter and setting JsonProperty Access will result in enumerating recursively the current type.

To Reproduce

public class ResourceSearchVO implements Serializable {
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private ResourceEnum type;

    public ResourceEnum getType() {
        return type;
    }

    public ResourceSearchVO setType(ResourceEnum type) {
        this.type = type;
        return this;
    }
}

Screenshots
image

Additional context
springdoc-openapi: 2.5.0

@fangzhengjin,

Thanks for sharing.
This is a swagger-core bug, and once it's fixed we will integrate it.