kbuntrock / openapi-maven-plugin

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

How to generate field for get method #176

Open yswtrue opened 2 months ago

yswtrue commented 2 months 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 2 months 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 2 months ago

Hi,