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
243b5569ef
[Rust] add property, parameter name mapping ( #16205 )
...
* add name, parameter mapping to rust generators
* add, fix test
* undo cahnge
2023-07-30 21:57:35 +08:00
Søren Hansen
9ee5fcc5c6
feat(rust,client): remove Default derives for structs as per #10845 ( #15856 )
...
* feat(rust,client): remove Default derives as per #10845
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-30 14:09:21 +08:00
Erik Wegner
389270334a
Rust validation handling ( #15288 )
...
* Prevent JavaScript regex delimiter
* Validation
* validator dependency
* validation with range
* Switch to garde crate for validation
* Update uuid crate
* Examples
* All rust-server samples
* Added rule handling
* Exchange garde for validator crate (rust)
* Version update in samples
---------
Co-authored-by: Erik Wegner <erik.wegner@regiocom.com>
2023-06-16 15:25:27 +08:00
William Cheng
0e8d997bf6
[rust-client]: fix for collectionFormat=multi ( #15626 )
...
* [rust-client]: fix for collection format multi
* update rust samples
---------
Co-authored-by: Gorka Kobeaga <gorka@kobeaga.eus>
2023-05-24 15:45:00 +08:00
William Cheng
1beec7ef87
Merge remote-tracking branch 'origin' into 7.0.x
2023-03-03 21:52:50 +08:00
Rémi Kalbe
099f138dd5
[RUST] Upgrade reqwest-middleware ( #14819 )
...
* [RUST] Upgrade reqwest-middleware
Bump reqwest-middleware from 0.1.6 to 0.2.0
* Bump sample
2023-02-27 09:05:37 +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
John Vandenberg
11d9d4346e
[rust] Fix content-type in templates ( #14702 )
2023-02-16 17:54:02 +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
Thomas von Rosenberg
88fa9ef3c2
[rust] Fix declaration for arrays with object and array references ( #14198 )
...
* [rust] Fix declaration for arrays with object and array references
For arrays with an item defined by reference to an array or an object,
the generated type declaration was `Vec<core::models::Array>` or
`Vec<core::models::Map>` without defining a `Array` or `Map` so that the
code didn't compile.
* [rust] Fix trailing whitespace in petstore definition
2022-12-28 15:08:21 +08:00
Thomas von Rosenberg
63f6569e6f
[rust] Fix model constructor for required enum array ( #14196 )
...
For a required enum array property the generated model constructor used
the type `RequiredEnums` instead of `Vec<RequiredEnums>`.
2022-12-27 23:25:01 +08:00
Sorin Florea
fdf1ce6c51
Fix apache http client query parameters ( #14193 )
2022-12-07 13:57:00 +08:00
Dillen Meijboom
6686ba2dc7
Add support for style=deepObject with query parameters in the Rust generator ( #13381 )
...
* Add support for style deepObject in the Rust generator
* Add support for arrays in deepObject query parameters and fixed issue with strings
2022-12-07 00:15:36 +08:00
William Cheng
4a5c9ff2d2
Add tests for rust reqwest middleware client ( #13990 )
...
* add tests for rust reqwest middleware client
* add github workflow
* trigger build
* fix rust
* trigger build failure
* Revert "trigger build failure"
This reverts commit 42d8ff42ee04d207d8c2dad4a9714a9c7ad3b1c5.
* Update pom.xml
Co-authored-by: Nathan Shaaban <86252985+nshaaban-cPacket@users.noreply.github.com>
* simplify folder
Co-authored-by: Nathan Shaaban <86252985+nshaaban-cPacket@users.noreply.github.com>
2022-11-13 10:24:29 +08:00
Elric Milon
1670e952ff
[Rust] Add support for reqwest-middleware when using reqwest ( #13946 )
...
Co-authored-by: Elric Milon <whirm@gmx.com>
2022-11-11 18:25:01 +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
558ae9373d
Merge remote-tracking branch 'origin/master' into 7.0.x
2022-11-01 21:01:06 +08:00
William Cheng
2947d147b4
Merge remote-tracking branch 'origin/master' into 6.3.x
2022-11-01 17:42:59 +08:00
William Cheng
b0ce532bdc
Prepare 6.2.1 release ( #13871 )
...
* prepare 6.2.1 release
* revert change
* fix maven plugin test
* update meta
2022-11-01 17:16:46 +08:00
John Vandenberg
3d578164e8
Sync Cargo.toml project metadata attributes ( #13824 )
2022-10-28 18:00:02 +08:00
John Vandenberg
413d3c33d7
Remove unused tokio in rust hyper client ( #13835 )
...
This crate version has an indirect security vuln,
as tokio-core 0.1.18 (latest) is two years old,
and uses tokio 0.1.5.
https://rustsec.org/advisories/RUSTSEC-2021-0124
2022-10-28 11:45:00 +08:00
John Vandenberg
e0043130c7
Remove unused serde_yaml ( #13820 )
...
This crate version has a security vuln
https://rustsec.org/advisories/RUSTSEC-2018-0005
2022-10-26 17:02:01 +08:00
Jacob Halsey
c1c9cb2192
[rust] Fix generation for optional and nullable fields (double option pattern) ( #13177 )
...
* Fix generation for optional and nullable fields (double option pattern)
* Only import serde_with if necessary
2022-10-17 15:44:18 +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
Jacob Halsey
e6dd608897
Rust: Issue #13453 - Empty enum variant names ( #13454 )
2022-09-20 22:52:13 +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
Jacob Halsey
dc7ae051b8
[rust] [rust-server] Add AbstractRustCodegen ( #13231 )
...
* Add AbstractRustCodegen
* Fix minor bug
* Fix copy-pasting mistake
* Simplify addApiNamePrefixAndSuffix
2022-08-26 12:11:19 +08:00
Jacob Halsey
6d82ac0806
[rust]: Remove unmaintained samples and specs ( #13193 )
...
* [rust]: Remove unmaintained samples and specs
* Fix checks
* move test file
* Fix test file
2022-08-19 15:45:48 +08:00
William Cheng
cfb35f97ef
update samples
2022-08-16 15:35:01 +08:00
William Cheng
456d7d0159
Add tests to Rust (hyper, reqwest) clients ( #13165 )
...
* add tests to rust clients
* add new file
2022-08-12 13:50:32 +08:00
Flux Xu
6d1c51c95b
[rust] fix incorrect Cargo.toml generated when supportAsync & withAWSV4Signature are both enabled. ( #13015 )
2022-08-04 00:11:08 +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
b88666b87a
add uuid test, better hyper test ( #12916 )
2022-07-19 11:22:29 +08:00
Taufik Rama
4ee336a9da
[Rust] Changed 'UUID' handling into 'uuid' crate ( #12895 )
...
* [Rust] Changed 'UUID' handling into 'uuid' crate
* [Rust] updated 'samples/'
2022-07-19 11:03:53 +08:00
William Cheng
5aa0e0a456
update samples
2022-07-13 17:32:31 +08:00
devhl-labs
636820b541
Add nonNullableVars to CodegenModel ( #12815 )
...
* added nonNullableVars
* build samples
2022-07-13 16:48:23 +08:00
William Cheng
574f6f3192
fix tests ( #12820 )
2022-07-10 17:16:45 +08:00
William Cheng
bf2083c22f
add new rust test files
2022-07-10 16:14:44 +08:00
William Cheng
e93be506da
upadte samples
2022-07-10 16:00:25 +08:00
William Cheng
82b7859c19
add tests for rust nullable required parameter ( #12814 )
2022-07-10 15:54:33 +08:00
Justin Black
35c31c129a
Fixes rust sample so CI test will pass ( #12817 )
2022-07-09 17:32:11 -04:00