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

knife4j 无法展示多个对象属性 #754

Open
ChildrenGreens opened this issue Mar 21, 2024 · 0 comments
Open

knife4j 无法展示多个对象属性 #754

ChildrenGreens opened this issue Mar 21, 2024 · 0 comments

Comments

@ChildrenGreens
Copy link

使用jar版本

      <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-openapi3-spring-boot-starter</artifactId>
            <version>4.5.0</version>
        </dependency>

基础类

@Data
public class RangeScreenDto {

    private Double start;

    private Double end;
}

嵌套类,用基础类RangeScreenDto作为属性类型

@Data
public class ScreenerDto  {
    /**
     * 涨跌幅
     */
    @Schema(description = "涨跌幅")
    private RangeScreenDto gain;

    /**
     * 换手率
     */
    @Schema(description = "换手率")
    private RangeScreenDto turnover;

}

在文档网页无法显示参数说明,参数说明栏目为空,麻烦修复一下这个bug

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