swagger-api / swagger-api/swagger-codegen

[objc] the http response code not available for 2XX

Open
#6,008 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Objc Enhancement: General help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

for objective-c the http response code is only available in a NSError object, but a NSError is not returned for 2XX range of responses.

Not sure if i'm missing something obvious or not?

Swagger-codegen version

2.3.0

Suggest a Fix

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

No source file or test is named. Start by reproducing the issue with the Objective-C client generated by Swagger-codegen 2.3.0, then trace how successful 2XX responses and NSError are exposed. Done means the HTTP response code is available for 2XX responses, with coverage for the affected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.