Mule APIKit在400错误中包含原因
我有一个raml文档,它使用如下字段指定我的请求数据结构:Mule APIKit在400错误中包含原因,mule,anypoint-studio,apikit,Mule,Anypoint Studio,Apikit,我有一个raml文档,它使用如下字段指定我的请求数据结构: "EstInstallDate": { "description": "the estimated date that the installation will be completed", "type": "string", "format": "date" } 这很好,因为当点击APIkit时,会出现一条带有以下文本的MessageException: 字符串“2016-32-32”对于请求的日期格式无效 年
"EstInstallDate": {
"description": "the estimated date that the installation will be completed",
"type": "string",
"format": "date"
}
这很好,因为当点击APIkit时,会出现一条带有以下文本的MessageException:
字符串“2016-32-32”对于请求的日期格式无效
年月日
但是一般的400错误负载是jsut“bad request”,我想在响应负载中包含这个错误消息
如何执行此操作?我发现在我的异常块中,我可以访问 异常消息 以获取错误的完整字符串。但是,最好包括验证失败的字段