kbuntrock / openapi-maven-plugin

Generate openapi documentation for SpringMVC or JaxRS/JakartaRS projects.
https://kbuntrock.github.io/openapi-maven-plugin/
MIT License
18 stars 12 forks source link

How to generate field for get method #176

Open yswtrue opened 3 weeks ago

yswtrue commented 3 weeks ago

A pojo like this

@Getter
@Setter
Class A {
    private Timestamp birthday;
    public Integer getAge() {
        if (this.birthday == null) {
            return null;
        }
        return DateUtil.ageOfNow(this.birthday);
    }
}

it won't generate the age field, only birthday field

kbuntrock commented 3 weeks ago

Hello @yswtrue,

First of all, I'm currently abroad very far for my computer till the end of the month. Until then, my help will be quite shallow.

I have a few questions:

Kind regards, Kevin

yswtrue commented 3 weeks ago

Hi,