Skip to content

单个openapi的json格式错误,components中缺少schemas 层级 #920

Open
@ganxj

Description

@ganxj

Describe the bug
单个接口中Open页面中的JSON格式不对,components中缺少schemas 层级,将这个json导入其他接口文档中时会不识别properties

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://xxxxx/doc.html'
  2. Click on '随便一个接口,然后点击open'
  3. Scroll down to 'json中的components处'
  4. See error

Expected behavior
json应该符合格式要求

 "components": {
    "schemas": {
         ...
      }
   }

Screenshots

Image

Knife4j Version (please complete the following information):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions