swagger-api/swagger-codegen

[swift] query params on put get ignored if URL is a type

Open

#2,978 创建于 2016年5月26日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)HTML (5,474 fork)batch import
Client: SwiftIssue: Bughelp wanted

仓库指标

Star
 (12,701 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Description

If the endpoint takes a query param in PUT request the alamofire ignores the parameters

Swagger-codegen version

2.1.6

Swagger declaration file content or url

https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/swift/default/PetstoreClient/Classes/Swaggers/AlamofireImplementations.swift#L31

Command line used for generation
Steps to reproduce
Related issues

I reported a bug in Alamofire as well https://github.com/Alamofire/Alamofire/issues/1275

Suggest a Fix

use Alamofire.ParameterEncoding.URLEncodedInURL ?

贡献者指南