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

[FEATURE] delombok expand doc #3644

Open
hzdjulytech opened this issue Mar 30, 2024 · 0 comments
Open

[FEATURE] delombok expand doc #3644

hzdjulytech opened this issue Mar 30, 2024 · 0 comments

Comments

@hzdjulytech
Copy link

Source code is A1 ,delombok out A2 ,expect A3 or A4 . How can I customize this process to generate specific document content,Can you provide an extension interface
`
@lombok.Getter
@lombok.Setter
class A1 {

@io.swagger.v3.oas.annotations.media.Schema(title = "title1",description = "description1")
private String str;

/**
 * str2xxxxx
 */
@io.swagger.v3.oas.annotations.media.Schema(title = "title2",description = "description2")
private String str2;

}

class A2 {

@io.swagger.v3.oas.annotations.media.Schema(title = "title1",description = "description1")
private String str;

/**
 * str2xxxxx
 */
@io.swagger.v3.oas.annotations.media.Schema(title = "title2",description = "description2")
private String str2;


public String getStr() {
	return str;
}

public void setStr(String str) {
	this.str = str;
}

/**
 * str2xxxxx
 */
public String getStr2() {
	return str2;
}
/**
 * str2xxxxx
 */
public void setStr2(String str2) {
	this.str2 = str2;
}

}

class A3 {

@io.swagger.v3.oas.annotations.media.Schema(title = "title1",description = "description1")
private String str;

/**
 * str2xxxxx
 */
@io.swagger.v3.oas.annotations.media.Schema(title = "title2",description = "description2")
private String str2;

/**
 * title1
 * {@summary description1}
 * @return
 */
public String getStr() {
	return str;
}
/**
 * title1
 * {@summary description1}
 * @return
 */
public void setStr(String str) {
	this.str = str;
}

/**
 * str2xxxxx
 */
public String getStr2() {
	return str2;
}
/**
 * str2xxxxx
 */
public void setStr2(String str2) {
	this.str2 = str2;
}

}

class A4 {

@io.swagger.v3.oas.annotations.media.Schema(title = "title1",description = "description1")
private String str;

/**
 * str2xxxxx
 */
@io.swagger.v3.oas.annotations.media.Schema(title = "title2",description = "description2")
private String str2;

/**
 * title1
 * {@summary description1}
 * @return
 */
public String getStr() {
	return str;
}
/**
 * title1
 * {@summary description1}
 * @return
 */
public void setStr(String str) {
	this.str = str;
}

/**
 * str2xxxxx
 * {@summary description2}
 * <hr>
 * title2
 * {@summary description2}
 */
public String getStr2() {
	return str2;
}
/**
 * str2xxxxx
 * <hr>
 * title2
 * {@summary description2}
 */
public void setStr2(String str2) {
	this.str2 = str2;
}

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant