swagger-api / swagger-api/swagger-codegen

[swift4] requestBuilder init with empty value isBody

Open
#8,816 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I have tried to generate test client for swift4, but init method has missing isBody value

Description

return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: )

Swagger-codegen version

3.0.0-rc1

Command line used for generation

java -jar swagger-codegen-cli-3.0.0-rc1.jar generate -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore-expanded.yaml -l swift4 -o swift4/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the Swagger Codegen 3.0.0-rc1 command and the petstore-expanded.yaml input shown in the report. Inspect the generated Swift4 requestBuilder initializer around the displayed POST call; done means the isBody argument is generated with a valid value and the client output is syntactically complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.