本地测试显示正常,结果如下
发布到线上服务器就异常了 如下:
提示有异常,异常信息格式
{
"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":""
}
}
]
}请问这是什么问题?怎么解决,
参考 Swagger online not validating schema:
JSchemaGenerator generator = new JSchemaGenerator
{
SchemaIdGenerationHandling = SchemaIdGenerationHandling.None,
SchemaReferenceHandling = SchemaReferenceHandling.None,
};
请问问题解决了吗?我是本地没问题,远程访问就有问题
– HongtaoLiu 5年前