Skip to content

enum values aren't exposed in swagger json #118

Closed
@taybin

Description

@taybin
params
  requires :foo_type, type: String, values: ["A", "B", "C", "D"], default: "C"
end

results in

<parameter>
  <paramType>form</paramType>
  <name>foo_type</name>
  <description nil="true"/>
  <type>string</type>
  <required type="boolean">true</required>
  <allowMultiple type="boolean">false</allowMultiple>
</parameter>

It would be nice if this used defaultValue and enum from the swagger spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions