OpenAPITools / OpenAPITools/openapi-generator

Add Support for Swift's AsyncHTTPClient

Open
#4,957 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Swift General: Suggestion
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

AsyncHTTPClient is a new HTTP client library for Swift built on SwiftNIO. This library utilizes non-blocking IO which makes it ideal for use Swift servers.

From what I can tell OpenAPI Generator currently supports generating Swift 5 clients based on URLSession, Alamofire, and RxSwift. It would be great if we could add support for AsyncHTTPClient so that servers could generate non-blocking clients to interact with OpenAPI-compatible APIs.

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

Review the existing Swift client generators for URLSession, Alamofire, and RxSwift, then read the AsyncHTTPClient and SwiftNIO documentation. Determine how generator configuration and templates are organized for those clients. Done means OpenAPI Generator can produce a working non-blocking Swift client using AsyncHTTPClient, with appropriate coverage alongside existing Swift clients.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, swift
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.