我正在使用apache camel创建一个休息服务。希望通过创建分区来解决问题"格式"昂首阔步。期待:
"/action" : {
"get" : {
"summary" : "summary",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "updatedate",
"in" : "query",
"description" : "description",
"required" : false,
"type" : "string",
"format":"date"
}]
但是这段代码:
rest().description("description").produces("application/json")
.get("/action").bindingMode(RestBindingMode.json).description("description").outTypeList(qwe.class)
.param().type(RestParamType.query).description("description").dataType("string").name("updatedate").required(false).endParam()
生成swagger而不使用"格式":"日期" 部分:
"/action" : {
"get" : {
"summary" : "summary",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "updatedate",
"in" : "query",
"description" : "description",
"required" : false,
"type" : "string"
}]
答案 0 :(得分:0)
目前尚不支持,所以我已经记录了一张票,以便在下一版本中实现这一点。您可以关注此票证:https://issues.apache.org/jira/browse/CAMEL-11991