Skip to content

Array declaration is wrong #237

Closed
Closed
@Fryie

Description

@Fryie

A param declaration like requires :foo, type: Array[Integer] generates a type: '[Integer]' entry in the JSON output.

However, the correct format would be:

type: 'array',
items: { type: 'integer' }

as documented by the specification - this btw doesn't appear to have changed in Swagger 2.0.

See also this issue.

It probably should also automatically append "[]" to the parameter name, although I'm not sure about that...

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