You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current approach to integrating rest-client into the core and re-exposing models and apis is not working very well. Right now I am generating rest-client C++ lib using openapi-generator::cpp-restsdk and then adding a C shim layer(> 100 model and api classes rewritten in C)
When I asked Claude, it suggested the following approaches
Generate C/C++ REST client using patched C/C++ templates in one go
C generator is notorious for poorly maintained and generating code that's hard to integrate (When I pointed Claude at a generated model, it found out memory leaks and data type issues)
So, use C/C++ patched templates with `openapi-generator`: fixing issues in generated C client + RAII wrappers for C++
Generate C and C++ rest clients separately
Use patched template for C rest client and `cpp-restsdk` for C++ rest client
What do you think? Feel free to suggest any alternative approaches as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
openapi-generator-cli::opencpp-restsdkforrest-clientgeneration and add a C shim layer in the core