Open HunterZ opened 3 years ago
Someone suggested that maybe I was using the wrong Twitter spec, but I get the same errors from this one: api.twitter.com/2/openapi.json
I suggest to put a [C] in the Issue title.
Looks like the cpp-restsdk client generator doesn't support set
at the moment.
We welcome contributions or sponsorships for a fix.
Just hit this issue myself. This change from std::vector needs to be undone completely.
Please revert to using std::vector
This fix (in need of further testings) seems to allow generation:
https://github.com/OpenAPITools/openapi-generator/compare/master...mlebihan:openapi-generator:cpp-restsdk_Missing_Set_h_9969
@dratchkov I did also a change in cpp-pistache-server to consider the set
as a std::set
and not a std::vector
anymore.
Bug Report Checklist
Description
When trying to build C or cpprestsdk APIs generated from Twitter's official OpenAPI JSON, I get missing
Set.h
andAnyType.h
header errors.openapi-generator version
Latest stable and master offered by official online generators as of time of this bug report.
OpenAPI declaration file content or url
https://api.twitter.com/labs/2/openapi.json as advertised by https://developer.twitter.com/en/docs/labs
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix