...
For both response and request you need to use tag <class>. It can contain
- <byte>
- <short>
- <integer>
- <long>
- <float>
- <double>
- <biginteger>
- <bigdecimal>
- <string>
- <boolean>
- <char>
- <localdate>
- <localtime>
- <localdatetime>
- <instant>
- <offsettime>
- <offsetdatetime>
- <zoneddatetime>
- <object>
- <enum>
- <array>
- <list>
- <string>
- ...<set>
So you are able to use type which you need. Each of these tags has different attributes (more info here) but they have several one in common. It's 'name' and 'description'. 'name' value is used to generate field with specified name in the class which represents the response/request. 'description' value is needed for you and others to understand why this tag was created and also for swagger. Also you need specifiy 'name' as an attribute of the <class> tag. The representing class will have the specified name.
...