使用Swagger OpenAPI 3编写API文档

时间:2019-03-21 09:28:26

标签: api swagger documentation openapi

我正在尝试使用Swagger OpenAPI 3编写API文档

最重要的部分是为requestBody编写一个模式

检查以下示例

requestBody: {
      content: {
        'application/json': {
          schema: {'x-ts-type': {x: String}},
        },
      },
    },

结果为空Schema,它不起作用, 问题在哪里?

0 个答案:

没有答案