When called on a Discrete Parameter such as one like:
the api call PARAMETER_DESCRIPTION::maximum returns a value one greater than the actual maximum. In this case 3. This is quite annoying, as you have to know the type of the parameter to know whether to subtract 1 or not.
Easily reproduced. Latest version.