2017-01-12 10 views
1

私は休憩サービスを作成するためにapache camelを使用しています。パーティションの "フォーマット"を作成することで問題を解決することを願っています。rest dslを使用してswaggerパラメータ "format"を指定するにはどうすればよいですか?

"/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() 

"形式" なしで闊歩を生成します。 "日付"セクション:への期待これはまだサポートされていません

"/action" : { 
     "get" : { 
     "summary" : "summary", 
     "produces" : [ "application/json" ], 
     "parameters" : [ { 
      "name" : "updatedate", 
      "in" : "query", 
      "description" : "description", 
      "required" : false, 
      "type" : "string"    
     }] 
+0

どのバージョンのCamelをお使いですか? –

+0

@ClausIbsen 2.17.1 –

+0

最新のリリースで試してみてください。 –

答えて

関連する問題