Handle array of union

I have defined types as following(in Erlang):

-type fruit() :: apple | banana | cucumber | other.
-type quant() :: 1…10.

-type get_fruits_doc() :: #{
‘fuite-inventory’ => [ fruit () | quant() ]
}.

Raml files generated.

While generating html:

fruit-inventory: array of union
Possible types:
one of : appple, banana, cucumber, other
integer

What I want in html:

After printing integer need minimum:1, maximum:10 to be printed.

Can you help me find what I’m missing here ?