We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "openapi": "3.0.0", "components": { "schemas": { "StringMap": { "type": "object", "properties": { "zh-Hans": { "type": "string", "description": "Text in Chinese (Simplified)." }, } } } }
Generator: cpp-restsdk-client Produces uncompilable code if there is a "-" (or other characters like a space etc.) in a property name of an object.
if(multipart->hasContent(utility::conversions::to_string_t(U("zh-Hant")))) { utility::string_t refVal_zh-Hant; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("zh-Hant"))), refVal_zh-Hant ); setZhHant(refVal_zh-Hant); }
#12288
Resulting cpp code looks like this:
if(multipart->hasContent(utility::conversions::to_string_t(U("zh-Hant")))) { utility::string_t refVal_setZhHant; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("zh-Hant"))), refVal_setZhHant ); setZhHant(refVal_setZhHant); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Compilable C++ code
OpenAPI declaration file content or url
Description
Generator: cpp-restsdk-client
Produces uncompilable code if there is a "-" (or other characters like a space etc.) in a property name of an object.
Suggest a fix
#12288
Resulting cpp code looks like this:
The text was updated successfully, but these errors were encountered: