Closed mschout closed 4 years ago
This PR detects enums that are either made from Types::Standard::Enum, or enum() from Moose::Util::TypeConstraints, and sets the swagger type to type: string and adds enum: [ ... all possible values ] to the generated swagger.
Types::Standard::Enum
enum()
Moose::Util::TypeConstraints
type: string
enum: [ ... all possible values ]
This PR detects enums that are either made from
Types::Standard::Enum
, orenum()
fromMoose::Util::TypeConstraints
, and sets the swagger type totype: string
and addsenum: [ ... all possible values ]
to the generated swagger.