OpenAPITools / OpenAPITools/openapi-generator

[REQ] Implement generator for cpp-httplib client/server

Open
#21,466 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Describe the solution you'd like

I would like to have a new generator in OpenAPI Generator that produces C++ client/server code using the cpp-httplib library. This generator should create code that leverages httplib for HTTP client and server functionality, making it easier to integrate OpenAPI-defined APIs with modern, lightweight C++ projects.
Also I would like to use nlohmann json for serialize and deserialize the models generated instead of boot property tree.

Describe alternatives you've considered

Using the existing C++ generators (such as C++ REST SDK or Pistache), but they do not support httplib and may have heavier dependencies or different design philosophies.
Manually writing the integration code for httplib based on the OpenAPI spec, which is time-consuming and error-prone.

Additional context

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

The issue names no implementation files or tests. Start by reviewing the existing C++ REST SDK and Pistache generators, then clarify the client/server scope and model serialization requirements; done means a new generator produces C++ code using cpp-httplib and nlohmann json.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.