Actions
Bug #22753
closedSome API parameters are wrongly documented as enum types
Description
There are several params in the apidoc that are wrongly documented as enum types. Authors most likely intended to validate the parameter for multiple allowed values, but apipie interprets the array syntax as enum.
E.g.:
param :value, LookupKey::KEY_TYPES # -> [ string, boolean, integer, real, array, hash, yaml, json ]
As a result hammer validates such options and raises an exception if ti contains values other than enumerated, which makes the commands unusable.
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset cb591e34f4e1f462b826a5f391bed20ceb192da3.
Actions