Skip to content
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

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

Closed
fangzhengjin opened this issue Jun 3, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@fangzhengjin
Copy link

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 fangzhengjin changed the title Using the builder setter and setting JsonProperty Access will result in enumerating recursively the current type [BUG] Using the builder setter and setting JsonProperty Access will result in enumerating recursively the current type Jun 3, 2024
@fangzhengjin
Copy link
Author

Link: swagger-api/swagger-core#4690

@bnasslahsen
Copy link
Contributor

@fangzhengjin,

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

@bnasslahsen bnasslahsen added the invalid This doesn't seem right label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants