Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos ( #13915 )
...
* Fix typos
* Remove repeated words
* Minor grammar fixes
2022-11-07 21:30:24 +08:00
William Cheng
363906fda3
Better error check if discriminator value is null in r client ( #13930 )
...
* better error check if discriminator value is null in r client
* more readable error messages
2022-11-07 02:16:16 +08:00
William Cheng
fae9a798a0
Better handling of date, datetime in R client ( #13706 )
...
* better handling of date, datetime in R client
* use string instead of as.Date
2022-10-17 00:41:37 +08:00
William Cheng
6a631b4cc0
[R] add discriminator and mappings support ( #13529 )
...
* add discriminator property, mapping
* add discriminator, mapping support to R client generator
* add discriminator, mapping support to R client genrator httr library
2022-09-28 00:18:28 +08:00
William Cheng
c81c103572
[R] Remove obsolete importMapping code, add tests ( #13345 )
...
* remove import obsolete code, add tests
* remove man fodler
* update .gitignore
2022-09-05 00:21:52 +08:00
William Cheng
d1f44e8a7e
fix http basc auth in R client ( #13330 )
2022-09-01 14:14:08 +08:00
William Cheng
b55fa261f3
add oneOf discriminator lookup support ( #13301 )
2022-08-29 01:24:01 +08:00
William Cheng
66ecfb62c3
[R] minor bug fixes in oneOf, anyOf ( #13298 )
...
* update oneof to handle primitive types in r client
* add support for primitive type support in anyOf in r client
* remmove lock
2022-08-28 09:36:45 +08:00
William Cheng
f287dde875
[R][httr2] better support for OAuth authoriziation flows ( #13123 )
...
* better oauth support in r client
* better comment
* update samples
* remove commented code
* update samples
* fix mustache tag
2022-08-07 21:49:04 +08:00
William Cheng
13d34b9b63
[R][httr2] Fix form parameter support ( #13057 )
...
* fix form parameter support in the r client
* fix query param
* fix form parameters
2022-08-03 23:45:12 +08:00
William Cheng
aa1f6276f3
[R][httr2] fix HTTP header ( #13066 )
...
* add test for header parameters
* fix header parameter in r httr2 client
2022-08-03 15:05:39 +08:00
William Cheng
6b6403b2bf
enhance api exception in r client ( #13046 )
2022-07-31 16:20:39 +08:00
William Cheng
e5e4e8fc07
throw exception if username, password is not set in http auth in r client ( #13035 )
2022-07-28 17:06:52 +08:00
William Cheng
c905760898
fix query, header params ( #13034 )
2022-07-28 16:31:12 +08:00
William Cheng
6e6c2f9a0e
add http basic test in r client ( #12978 )
2022-07-22 10:01:48 +08:00
William Cheng
20420e5e14
[R] add streaming support ( #12821 )
...
* add streaming option to r client
* support callback function to process data stream
* add stream test, minor bug fixes
* fix api client
* return void earlier if streaming, add tests
2022-07-11 00:19:07 +08:00
William Cheng
08108cc4ba
add tests for nested oneOf fromJSONString ( #12740 )
2022-06-30 23:08:49 +08:00
William Cheng
0232d1cd00
add toString method to oneOf/anyOf objects ( #12727 )
2022-06-29 11:01:56 +08:00
William Cheng
3feb11acbb
fix nested oneof, fix toStringJSON ( #12723 )
2022-06-28 23:43:56 +08:00
William Cheng
e4b78dbbd8
[R] minify json in toJSON ( #12699 )
...
* minify json in toJSON
* update fromjson with better variable naming
2022-06-25 18:11:25 +08:00
William Cheng
7d768f2535
[R] add error object type support ( #12402 )
...
* use rlang as exception in the petstore test
* add errorObject support
* fix method name, use ModelApiRespeonse
* update samples
* update doc
* fix api exception
2022-06-23 13:45:05 +08:00
William Cheng
a599ae927f
fix deserialization for r model with special item name ( #12658 )
2022-06-22 15:06:56 +08:00
William Cheng
042f717352
[R] escape item reserved words in model items ( #12653 )
...
* fix item reserved words
* add comment
* add log
2022-06-21 11:42:27 +08:00
William Cheng
f29fdab33d
update constructor for r oneof, anyof objects ( #12643 )
2022-06-21 09:25:54 +08:00
William Cheng
bd6617b3e7
Better null check for encoding ( #12597 )
...
* better null check for encoding
* add tests
* update samples
2022-06-15 15:49:30 +08:00
William Cheng
14aef2c93d
[R] Add validateJSON to oneOf, anyOf models ( #12548 )
...
* add validateJSON to r oneof, anyof models
* update tests
2022-06-08 00:35:40 +08:00
William Cheng
4fbe1e9115
[R] add anyOf support ( #12544 )
...
* add anyOf support
* add anyOf support to r client generator
2022-06-07 10:05:34 +08:00
William Cheng
5db8cd0eff
fix toJSON, add tests ( #12541 )
2022-06-06 23:17:35 +08:00
William Cheng
6cd246931e
[R] add oneOf support ( #12491 )
...
* add oneof support
* add validateJson method
* add validteJSON and tests
* add tests, add oneOf logic
* better error message in validateJSON
* fix tests
* add test for error message
* remove unused code
2022-06-05 18:03:34 +08:00
William Cheng
05d49d9107
Add support for allOf in R client generator ( #12487 )
...
* add support for all in R client generator
* update samples
2022-05-29 07:22:18 +08:00
William Cheng
7b08aa408d
[R] improve code format ( #12387 )
...
* better code format for r client
* more code format improvement
2022-05-25 18:02:52 +08:00
William Cheng
3597621fbc
[R] Use snake_case in method parameter names ( #12390 )
...
* use snake_case in method parameter names
* update doc
2022-05-19 01:23:27 +08:00
William Cheng
1b7b4ede44
[R] fix warnings in DESCRIPTION ( #12380 )
...
* fix warnings in description
* fix maintainer
* update test with jsonlite method instead
2022-05-17 13:25:16 +08:00
William Cheng
040482e977
add support to download response as file ( #12373 )
2022-05-17 10:52:09 +08:00
Marcel Ramos
8e95298653
[R] Enum R6Class Support, closes #3367 ( #5728 )
...
* wip: fix documentation tags
* update model.mustache
* update template for documentation
* update mustache templates
* update mustache templates
* run ./bin/r-petstore and update R pkg docs
* use loadNamespace instead of package:pkgName string
* update R package code
* wip: enum
* update enum function
* use httr::content to unwrap response
* update enum table and functions
* include simplifyVector and auto_unbox arguments
* remove mapping and return strings
* use triple stash values and update enum class methods
* remove extra comma
* minor: formatting
* update and run ./bin/r-petstore.sh
* move helper for template
- export tag does not coincide with original model function
- move helper down so it does
* update tests based on generator
* Revert "update tests based on generator"
This reverts commit b6314c8927a8411561577c0dfd100018947de42e.
* Update tests with engine
- preserve test_petstore.R
* restore apiResponse
* restore simplifyVector to TRUE value
* update api.mustache templates
* fix and add tests to package
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-07-01 15:48:09 +08:00
William Cheng
3ba6d8226e
[R] Add petstore integration tests to CI ( #2354 )
...
* add r petstore test
* run test in node 1
* fix r bash test
* fix typo
* fix permission error
* fix r installation error
* use diff r repo
* install latest r
* install curl
* use sudo for apt-get
* add no manual
* add sudo install
* better caching
* export env
* update lib location
* create lib dir
* update r lib dir
2019-03-11 20:56:11 +08:00
William Cheng
e6658278ad
R client refactoring ( #2215 )
...
* [R] fix namespace, use 2-space indentation (#2105 )
* fix namespace, indentation
* use 2-space indentation in model files
* update gitignore
* use PascalCase for function naming (#2106 )
* [R] improve .travis.yml, .Rbuildignore (#2109 )
* update travis
* enhance travis.yml
* update travis, .Rbuildignore
* [R] Add auto-generated documentations, change parameter naming (#2114 )
* add auto-generated doc for r client
* remove module name
* replace nil with void
* [R] fix object serialization to JSON (#2129 )
* fix object serialization
* fix array property seriziation
* fix deserializing array of string
* fix array of object deserialization
* [R] Fix return type (#2140 )
* fix return type
* update r petstore sample
* add auto-generated tests (#2141 )
* rename file to conform to style guide (#2142 )
* add authenticaiton support to R (#2153 )
[R] Add authentication support, minor ApiClient refactor
* rename test files
* [R] various improvements and bug fixes (#2162 )
* fix api keys in headers
* use optional parameter in function signature
* fix property naming
* fix doc assignment operator
* [R] fix base64 encode (#2171 )
* fix base64 encode
* fix basic http auth
* fix typo, update instruction (#2203 )
* rename test files to conform to style guide (#2206 )
* [R] improve class constructor (#2208 )
* update constructor with optional parameter, default value
* update r petstore sample
* clean up files
* regenerate files
* Revert "rename test files to conform to style guide (#2206 )"
This reverts commit 90a6302a6565d208a6ab298fda41a47836a63d9c.
* fix query parameter in api client (#2214 )
2019-02-23 23:51:11 +08:00
William Cheng
a4f76b889e
update R default value, clean up old R files, add window batch for ( #415 )
...
openapi3
2018-05-11 11:25:50 +08:00
Ramkumar Chandrasekaran
3de6a8f0f2
Adding R Petstore Client Package ( #6307 )
2017-08-14 16:06:08 +08:00