-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[R] various bug fixes and enhancements #1965
Conversation
result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) | ||
Response$new(returnObject, resp) | ||
{{/isPrimitiveType}} | ||
{{^isPrimitiveType}} |
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.
@jokedurnez thanks for the PR. Seems like this line is missing a space in terms of alignment?
@jokedurnez thanks for the enhancement. Can you please also run the following to update the R Petstore samples? linux/mac: (you may notice changes not caused by this PR, which is fine) |
Fixed those review comments ! |
@jokedurnez shall we use 2-space for indentation as stated in https://google.github.io/styleguide/Rguide.xml#indentation ? |
Also I've started a project to refactor the R client generator and you can track progress in https://github.com/OpenAPITools/openapi-generator/projects/8 |
FYI. Filed #2215 to refactor the R client. |
{{/isListContainer}} | ||
{{/vars}} | ||
) | ||
gsub("[\r\n]| ", "", outstring) |
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 think this may cause issues if the value contains these characters
* debug headers in R client * fixes to R client * petstore samples * missing space * other space :)
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
.master
,. Default:3.4.x
,4.0.x
master
.Description of the PR
I cleaned up the mustache files to be more readable, fixed the primary types and added conditionals to responses.
Used for this specification: https://github.com/openlattice/api/blob/develop/openlattice.yaml
Thanks for the great resource !