cn.willingxyz.restdoc.swagger.common.SwaggerGeneratorConfig Maven / Gradle / Ivy
package cn.willingxyz.restdoc.swagger.common;
import cn.willingxyz.restdoc.core.parse.ITypeInspector;
import cn.willingxyz.restdoc.core.parse.ITypeNameParser;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
@Data
public class SwaggerGeneratorConfig {
private String _version;
private String _description;
private String _title;
/**
* 把Tag的描述显示为tag Name。默认tag name为类的名字,如果该值为true,则使用javadoc的第一行作为name
*/
private boolean _tagDescriptionAsName = false;
/**
* 将JavaDoc的注释作为类的名称
*/
private boolean _resolveJavaDocAsTypeName = false;
/**
* 如果controller里没有方法,则不显示该controller
*/
private boolean _hideEmptyController = false;
private List _servers = new ArrayList<>();
private ISwaggerTypeInspector _swaggerTypeInspector;
private ITypeInspector _typeInspector;
private ITypeNameParser _typeNameParser;
@Data
@Builder
public static class ServerInfo
{
private String _description;
private String _url;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy