-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
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
Freeform object support, safe string operations, URL encoding fixes for C-libcurl #12069
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution ! Can you resove the merge confict first ? |
@@ -841,12 +841,12 @@ static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffe | |||
/* empty string */ | |||
if (input == NULL) | |||
{ | |||
output = ensure(output_buffer, sizeof("\"\"")); | |||
output = ensure(output_buffer, sizeof("\"\"")+1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The souce code comes from cJSON https://github.com/DaveGamble/cJSON. we shouldn't hack to fix it here.
Suggest fixing it in cJSON project or leave this code as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll see if they'll accept the changes.
samples/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/PetApi.java
Outdated
Show resolved
Hide resolved
...les/client/petstore/spring-cloud-no-nullable/src/main/java/org/openapitools/api/UserApi.java
Outdated
Show resolved
Hide resolved
@@ -325,11 +325,6 @@ end: | |||
localVarBodyParameters, | |||
"{{{httpMethod}}}"); | |||
|
|||
{{#responses}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code has already been changed by #12056
@@ -134,6 +134,15 @@ void apiClient_free(apiClient_t *apiClient) { | |||
free(apiClient); | |||
} | |||
|
|||
void apiClient_free_data(apiClient_t *apiClient) { | |||
if (apiClient->dataReceived) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where this function is being called. What's its purpse ? for free-form object parsing ?
How is it going ? |
@zhemant @ityuhui @michelealbano updates on behalf of https://moxion.io.
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.