Yohei Kitamura
56105fbbe6
[ruby] Not symbolize header param keys to allow the usage of underscore ("_") character ( #16396 )
...
* [ruby] Not symbolize header param keys to allow the usage of underscore ("_") character
* use lambda to convert header key to a string if underscore is included
2023-08-29 10:42:53 +08:00
William Cheng
55252f4b25
update ruby samples
2023-08-28 15:17:05 +08:00
William Cheng
80121aa88f
Prepare v7.0.1 ( #16409 )
...
* prepare 7.0.1 in master
* update doc
2023-08-25 16:11:29 +08:00
William Cheng
d7311cd5cd
[Ruby] add property, parameter name mapping ( #16191 )
...
* add property, parameter name mapping support to ruby generators
* update samples
2023-07-27 09:48:53 +08:00
William Cheng
9aa15d9f09
[ruby] Add tests to operation servers in ruby client ( #16179 )
...
* add tests to operation servers in ruby client
* update samples
* revert change in spec, remove invalid? check in anyof model
* fix hsot table
* fix circleci config
* fix
* fix host table
* fix host table
* minor fix
* fix
* reorder
* update
* fix
2023-07-25 19:29:06 +08:00
Cameron Koegel
54d996732f
[Ruby] Fix Operation Servers ( #16144 )
...
* [Ruby] Fix Operation Servers
* user `server_index` instead of `index`
* use nil as default
* add tests
* revert tests
* add tests to custom file
* add test file to ruby-faraday
2023-07-25 12:18:23 +08:00
William Cheng
7252d1a698
[Ruby] add anyOf support ( #16147 )
...
* add anyOf support
* remove valid? from oneOf template
2023-07-21 11:38:07 +08:00
Cameron Koegel
de0bffb99d
[Ruby] Update Model Creation and Attribute Validation ( #16114 )
...
* update attribute validation and model creation
* generate samples
* update tests
* update other tests
* fix custom pet_spec tests
* fix autoload tests
2023-07-21 08:58:55 +08:00
William Cheng
ddc2b3e560
Add tests for oneOf models in ruby client ( #16137 )
...
* add test for oneOf model in ruby
* add new files
* add tests for oneOf model without discriminator
2023-07-20 17:35:40 +08:00
William Cheng
6788f43af0
Better handling of Inline schema ( #15682 )
...
* skip allOf inline subschema created as $ref
* add option for fallback
* add back atleastonemodel
* add log
* update java, kotlin, js samples
* update tests
* fix native client test
* fix java client errors by regenerating test files
* clean up python
* clean up powershell
* clean up php
* clean up ruby
* update erlang, elixir
* update dart samples
* update ts samples
* update r, go samples
* update perl
* update swift
* add back files
* add back files
* remove outdated test files
* fix test
2023-06-11 15:35:58 +08:00
martin-mfg
b7f2b723aa
[JAVA] fix toUrlQueryString for BigDecimal ( #15764 )
...
* add MyImportTest.java
* fix original issue
* fix same issue for native library
* remove MyImportTest
* add test configs
* generate samples (again?)
* generate samples again
* generate samples again, undo pom.xml mistake [amended to retrigger circliCi]
2023-06-08 09:34:06 +08:00
Tiffany Marrel
c2f635a330
fix use of isBasic and isBasicBasic and isBasicBearer and isHttpSignature in documentation ( #15443 )
...
* [ada] fix use of isBasic condition
* [apex] fix use of isBasic condition
* [asciidoc] fix use of isBasic condition
* [python] fix use of isBasic condition
* [csharp C#] fix use of isBasic condition
* [htmlDocs] fix use of isBasic condition
* [Ruby] fix use of isBasic condition
* [scala] fix use of isBasic condition
* [julia] fix use of isBasic condition
* [Objective-C objc] fix use of isBasic condition
* [GraphQL] fix use of isBasic condition
* [MarkDown] fix use of isBasic condition
2023-06-01 09:47:00 +08:00
William Cheng
0c3460f95b
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-05-10 15:00:56 +08:00
Tiffany Marrel
2b19d5f94d
[Ruby] fix documentation of API authorization in README files ( #15353 )
...
align wording across generators
2023-05-09 14:17:34 +08:00
Ivo Wever
2679819694
[Ruby] Client: fix base_url when no server_operation_index is defined ( #15162 )
...
As discussed in https://github.com/OpenAPITools/openapi-generator/pull/7415#discussion_r1113274416 , it seems unlikely the code was correct.
server_operation_index is a hash table. In Ruby, `hash[key]` will return the value associated with `key`. If key is absent, `nil` is returned. Because that is sometimes undesirable, there is also `hash.fetch(key)`, which raises an error if the key is absent. It also allows you to specify a default to fall back on: `hash.fetch(key, default)` will return `default` if the key is absent.
So, since not all users will specify a 'server per operation' (or at least: I'm not), the old code would usually set `index` to the `server_index`, which is initialized to 0. The subsequent `if index == nil` will usually return false (`0 != nil` in Ruby), after which the `server_url` call on line 177 constructs the url based on the `server_operation_variables` and `operation_server_settings`, assuming we are dealing with the case where a server per operation is configured. The case where the url should be constructed from `scheme`, `host`, etc. is only called if either `server_index` is explicitly set to `nil` or the key `operation` is explicitly associated with the value `nil` in the `server_operation_index` hash table, both of which seem inappropriate.
2023-04-21 11:11:42 +08:00
William Cheng
935146d187
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-04-12 17:51:47 +08:00
Takeshi Masaki
5e3bb7e33e
[Ruby] fix RSpec documentation URL ( #15164 )
2023-04-10 10:44:28 +08:00
William Cheng
5d1e18306a
Prepare 6.6.0-SNAPSHOT ( #15100 )
...
* set 6.6.0 snapshot version
* update samples
* update readme
2023-04-01 18:48:01 +08:00
William Cheng
7417432a54
Prepare 6.5.0 release ( #15099 )
...
* 6.5.0 release
* update samples
2023-04-01 15:03:35 +08:00
William Cheng
a4dd90c01d
Better allOf handling in fromProperty ( #15035 )
...
* fix allOf handling in fromProperty
* add null check, update samples
* update dart generator to handle allof with a single ref
2023-03-26 15:06:27 +08:00
William Cheng
1beec7ef87
Merge remote-tracking branch 'origin' into 7.0.x
2023-03-03 21:52:50 +08:00
Cameron Koegel
18ef6ff96a
[Ruby] fix return_binary_data
with attr_accessor
( #14772 )
...
* [Ruby] fix `return_binary_data` with `attr_accessor`
* regenerate samples
2023-02-22 00:51:21 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release ( #14749 )
2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release ( #14748 )
...
* prepare 6.4.0 release
* update samples
2023-02-19 18:53:20 +08:00
Beppe Catanese
68b944e6e6
Preserve order of securitySchemes ( #14536 )
...
* Remove alphabetical sort
* Update integration testing expectations
* Regenerate files
2023-02-10 22:20:19 +08:00
Simon Schmid
55e2eb1d6a
Set proxy in ruby faraday client if configured ( #14597 )
...
* set proxy in ruby faraday client if configured
* Add missing string terminator in ruby client spec
* generating samples for ruby
2023-02-03 16:11:44 +08:00
William Cheng
31a89e35cb
Prepare 6.4.0 ( #14582 )
...
* update to 6.4.0 snapshot
* update samples
* update doc
2023-02-01 22:44:40 +08:00
William Cheng
8f2676c5c2
Prepare v6.3.0 release ( #14580 )
...
* 6.3.0 release
* fix maven plugin test
* update samples
* update doc
* fix tests in windows
2023-02-01 20:52:29 +08:00
Lisa Burns
02d4852f26
Enable access token refresh ( #14251 )
...
* Enable the ruby client to support refreshing access tokens
- The client can now be configured with an access token getter proc
- The proc overrides the the static access token if it is set
* Run generators
2022-12-21 15:19:51 +08:00
Yohei Kitamura
6800905123
[ruby] Fix api_error.mustache to initialize message-only errors properly ( #14264 )
2022-12-17 15:58:04 +08:00
William Cheng
2e44e78474
Update Ruby minimum version to 2.7 ( #14002 )
...
* update ruby minimum version to 2.7
* test ruby in cirleci
2022-11-13 12:14:21 +08:00
William Cheng
ca5d9b5e69
Add isEnumRef, isEnumOrRef to CodegenProperty ( #13880 )
...
* add isEnumRef to codegen property
* better format
* update R template to use isEnumOrRef
* update powershell template to use isEnumOrRef
* update samples
2022-11-08 11:16:16 +08:00
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
2bac0a8d99
Merge remote-tracking branch 'origin/6.3.x' into 7.0.x
2022-10-16 21:27:53 +08:00
William Cheng
4d03c9272b
prepare 6.3.0 snapshot
2022-10-15 15:40:47 +08:00
William Cheng
ac7ebf67dd
Prepare 6.2.1 ( #13517 )
...
* update to 6.2.1-SNAPSHOT
* update samples
* update doc
2022-09-25 00:10:30 +08:00
William Cheng
24f476a381
prepare 6.2.0 release ( #13514 )
...
* set release version to 6.2.0
* update samples
* comment out rust server test in travis
2022-09-24 21:44:42 +08:00
miyucy
1f9f94066a
[Ruby] Change constants lookup methods in enum class ( #13285 )
...
* [Ruby] Add missing block ends
* [Ruby] Change constants lookup methods in enum class
* Update ruby samples
2022-09-20 13:41:26 +08:00
William Cheng
928070c57a
Prepare 6.1.1 SNAPSHOT version ( #13399 )
...
* prepare v6.1.1
* update samples
* update doc
2022-09-11 19:08:23 +08:00
William Cheng
43dbb5ff9c
6.1.0 release ( #13398 )
2022-09-11 17:16:07 +08:00
devhl-labs
7e4fa70067
Update allOf to not always be nullable ( #12861 )
...
* added nonNullableVars
* added return property to operation
* added return property to operation
* build samples
* added inner enum
* build samples
* allOf no longer always nullable
* added a comment
2022-08-16 00:47:51 +08:00
Thomas Hansen
1e3a39b460
[PHP] Add support for server variables in operations ( #12982 )
...
* [FEATURE] Support for server variables in operations
* [AUTOGENERATED] update samples
* [PHP] Added tests for server variables in operations
2022-08-04 00:15:51 +08:00
William Cheng
c26e19cbc0
Revert "Add support for string response deserialization ( #12910 )"
...
This reverts commit b8524bee232a55e28693354ab543b91e3f65629a.
2022-07-21 12:58:46 +08:00
Emanuele Saccomandi
b8524bee23
Add support for string response deserialization ( #12910 )
...
* Add support for string response deserialization
* updated samples
* updated samples
* realigned to master
* fix: errors were not getting thrown
* updated samples
* fix: errors were not getting thrown
* updated samples
2022-07-21 12:45:50 +08:00
William Cheng
6bfef6c191
Merge remote-tracking branch 'origin/master' into 7.0.x
2022-07-19 11:54:20 +08:00
William Cheng
6cae0fbb78
Merge remote-tracking branch 'origin/6.1.x'
2022-07-04 01:22:51 +08:00
William Cheng
9e412edb64
Prepare 6.0.1 release ( #12762 )
...
* update to v6.0.1
* update doc
* update samples
2022-07-03 23:36:46 +08:00
Gabriel Mazetto
b97a4ad12a
Generate .gitlab-ci.yml files for Ruby template ( #12750 )
2022-07-03 17:52:32 +08:00
William Cheng
c54b0623b8
prepare 7.0.x
2022-05-26 13:17:52 +08:00
William Cheng
5bd94b8fa0
prepare 6.1.x
2022-05-26 12:58:25 +08:00