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"
}]
どのバージョンのCamelをお使いですか? –
@ClausIbsen 2.17.1 –
最新のリリースで試してみてください。 –