swagger-api/swagger-codegen

[scala] collectionFormat not supported for tsv, pipes, ssv, multi

Open

#4 976 ouverte le 8 mars 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)HTML (5 474 forks)batch import
Enhancement: GeneralServer: Scalahelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

This is for the scalatra server (-l scalatra).

Generated code for collection parameters can only parse the csv format at the moment. Other formats, such as pipes, are not supported.

Swagger-codegen version

Latest github snapshot as of 2017-03-08

Swagger declaration file content or url

  /pathologies:
    get:
      summary: "Information about pathological findings."
      parameters:
        - name: sampleIdFilter
          description: "Sample IDs to get pathologies for"
          in: query
          type: array
          collectionFormat: pipes
          required: false
          items:
            type: string

Related issues

https://github.com/swagger-api/swagger-codegen/pull/4426

Suggest a Fix

I will try to submit a PR soon.

Guide contributeur