Skip to content

Default for collectionFormat is "multi" but should be "csv" #1893

Closed
@michaelkourlas

Description

@michaelkourlas

As part of issue #1160, it looks like the default value for "collectionFormat" for parameters was changed to "multi". However, according to the Swagger specification, the default is supposed to be "csv":

collectionFormat

string

[...]

Default value is csv.

I realize there's been some discussion about changing the default to "multi" in version 3.0 of the spec, but swagger-core is currently supposed to be compatible with version 2.0, right? As it stands now, this breaks APIs that rely on the default behaviour provided for in the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions