You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by J- <jm...@hotmail.com> on 2015/12/21 23:08:10 UTC

How to get long and array data types working in camel swagger java

Hi,

I'm using 2.16.1, I'm trying to get array and long data types working using Java DSL.  Here is the relevant line:

.param().name("myList").dataType("array").endParam()

This renders an array data type, but how to i specify it's an array of Longs.

It should render something like this:

{
  name: "myList",
  type: "array",
  items: {
    type: "integer",
    format: "int64"
    }
}

It seems there should be some other options to set the SerializableParameter items and format.

Also "long" data type should be something like this:

.param().name("myLong").dataType("int").format("int64").endParam()