首页 新闻 会员 周边

Swagger 线上部署注释显示异常问题? 用的筒子们进来看看!,如何解决!!!

0
悬赏园豆:20 [待解决问题]

本地测试显示正常,结果如下

 

发布到线上服务器就异常了  如下:

 

提示有异常,异常信息格式

{
  "messages":[
    "attribute ControllerDesc is unexpected"
  ]
,
  "schemaValidationMessages":[
    {
      "level":"error",
      "domain":"validation",
      "keyword":"additionalProperties",
      "message":"object instance has properties which are not allowed by the schema: ["ControllerDesc"]",
      "schema":{
        "loadingURI":"#",
        "pointer":""
      }
,
      "instance":{
        "pointer":""
      }

    }

  ]

}请问这是什么问题?怎么解决,

Wheat_LI的主页 Wheat_LI | 初学一级 | 园豆:154
提问于:2018-04-12 18:58

请问问题解决了吗?我是本地没问题,远程访问就有问题

HongtaoLiu 5年前
< >
分享
所有回答(1)
0

参考 Swagger online not validating schema

JSchemaGenerator generator = new JSchemaGenerator
{
    SchemaIdGenerationHandling = SchemaIdGenerationHandling.None,
    SchemaReferenceHandling = SchemaReferenceHandling.None,
};
dudu | 园豆:31003 (高人七级) | 2018-04-12 20:21
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册