小编dbs*_*hah的帖子

为 swagger 指定的模型架构无效

我尝试在 AWS 上部署 API,但不允许在 JSON 文件中添加模型并显示错误:

它在不使用模型的情况下工作,所以也许它不会以这种方式使用模型,所以请建议我如何在 AWS 上的 API JSON 中使用模型!

错误是:

Your API was not imported due to errors in the Swagger file.
Unable to create model for 'LandingPageDTO': Invalid model specified: Validation Result: warnings : [], errors : [Invalid model schema specified]
Unable to put method 'POST' on resource at path '/userservice/la/program-summary': Invalid model name specified: null
Additionally, these warnings were found:
Reference to model 'LandingPageDTO' not found. Ignoring.
Run Code Online (Sandbox Code Playgroud)

我的招摇json是:

{
  "swagger" : "2.0",
  "info" : { …
Run Code Online (Sandbox Code Playgroud)

json swagger aws-api-gateway

3
推荐指数
1
解决办法
4290
查看次数

标签 统计

aws-api-gateway ×1

json ×1

swagger ×1