William Cheng
2fd23f505e
Prepare 5.0.0-SNAPSHOT ( #7347 )
...
* Revert "Prepare 5.0.0-beta2 release (#7345 )"
This reverts commit 212b4f784742744b7b238607dcefb23ec9db64d7.
* update readme
2020-09-04 15:31:54 +08:00
William Cheng
212b4f7847
Prepare 5.0.0-beta2 release ( #7345 )
...
* update version
* update doc
* update samples
2020-09-04 13:03:45 +08:00
Yuriy Belenko
6a08ec59c0
[core] Add type and format properties to model of inline response ( #6153 )
2020-08-03 18:37:37 -04:00
wing328
748190a049
update samples
2020-06-16 11:24:56 +08:00
Richard Whitehouse
c094effd90
[Core, Rust Server] Support JSON query parameters ( #6577 )
...
* [Core] Record content type for parameters
* [Rust Server] Support query parameters in JSON
* [Rust Server] Add test for JSON query parameter
* Update samples
2020-06-15 23:06:03 +01:00
Richard Whitehouse
45655c2235
[Rust Server] Support arrays within additional properties ( #6576 )
...
* [Rust Server] Support arrays within additional properties
* [Rust Server] Add test for additional properties with lists
* Update samples
2020-06-15 23:05:35 +01:00
Richard Whitehouse
3ba787c5aa
[Core, Rust Server] Support optional headers ( #6575 )
...
* [Core] Set whether a header is required
* [Rust Server] Support optional headers
* [Rust Server] Add test for required header
* Update samples
2020-06-15 23:05:11 +01:00
Richard Whitehouse
c65363eb71
[Rust Server] Pass context to client middleware ( #6574 )
...
* [Rust Server] Pass context to client middleware
When creating a client with middleware, pass the context.
This allows users to pass contextual data about the requests through to the
client middleware.
* Update samples
2020-06-15 23:03:25 +01:00
Richard Whitehouse
82410ae90b
[Rust Server] Hyper 0.13 + Async/Await support ( #6244 )
...
* [Rust Server] Hyper 0.13 + Async/Await support
Upgrade dependencies to Hyper 0.13 and use async/await.
* [Rust Server] Add missing hyper-tls dependency
* [Rust Server] Add missing models import
* Update samples
2020-05-29 15:18:30 +01:00
Jim Schubert
70ca93570e
[core][general] Add metadata file tracking to aid in "Golden Tests" regeneration ( #6325 )
2020-05-22 16:48:32 -04:00
William Cheng
b23ec9a7dd
map any type in rust server generator ( #6209 )
2020-05-08 10:11:58 +08:00
William Cheng
98e54f0cc1
Merge remote-tracking branch 'origin/5.0.x'
2020-05-07 14:27:56 +08:00
Richard Whitehouse
046b4acdff
[Rust Server] Support boolean headers, and fix panic handling headers ( #6056 )
...
* [Rust Server] Support headers containing booleans
* [Rust Server] Fix panic handling headers
* [Rust Server] Fix issue with Results
* Update samples
2020-05-06 19:27:52 +01:00
William Cheng
4beea9d90d
update samples
2020-05-07 00:30:12 +08:00
Richard Whitehouse
f36a319316
[Rust Server] Rust 2018 Edition ( #5942 )
...
* [Rust Server] Rust 2018 Edition
* [Rust Server] Fix unused warning
* Update samples
2020-04-26 12:00:46 +01:00
Andy.Yang.cn
d911fd73bd
[Rust Server] Bugfix #5948 (Generated client code "Disabled because there's no example") ( #5949 )
...
* [Rust Server] Fix RustServerCodegen type: object example "Disabled because there's no example" issue.
* [Rust Server] Add test case yaml with "Disabled because there's no example" issue.
* [Rust Server] Fix example-client-main param.example character escaping issue with raw string.
* [Rust Server] Add test case yaml new generated code after fix.
2020-04-24 11:04:36 +08:00
Andy.Yang.cn
38dfed4104
[Rust Server] Fix #5947 multi tag generate multi method issue. ( #5928 )
...
* [Rust Server] Fix issue with multiple tags on an operation generating duplicate methods.
* [Rust Server] Add test case yaml with multiple tags on a single operation.
2020-04-22 18:00:21 +01:00
Richard Whitehouse
2cd5bc45da
Update samples
2020-04-20 18:43:19 +01:00
William Cheng
faf6f197be
Merge remote-tracking branch 'origin/master' into 5.0-sync-master
2020-04-17 15:51:00 +08:00
Bodo Graumann
896867b5e7
Use model as body param for generateAliasAsModel ( #4569 )
...
* generateAliasAsModel: Use model name as body param
* Update samples
2020-04-17 13:36:27 +08:00
Andy.Yang.cn
c3837ca331
[Rust Server] Fix #5906 (yaml with path parameter error) ( #5871 )
...
* [Rust Server] Fix Rust 1.39+ "Box<Future" and "as &Has" compile issue
* [Rust Server] Fix Rust server side pathRegEx and baseName not match issue
* [Rust Server] Add test case yaml with path parameter.
2020-04-15 17:19:00 +01:00
Richard Whitehouse
95105cef2e
[Rust Server] Support complex query parameters ( #5831 )
...
* [Rust Server] Support complex query parameters
* [Rust Server] Remove unused extern crate
* [Rust Server] tokio should be a dev-dependency
* [Rust Server] Add test for complex query params
* Update samples
Co-authored-by: Matt Williams
2020-04-12 19:57:50 +01:00
Richard Whitehouse
cdb500c156
[Rust Server] Fix no features build ( #5747 )
...
* Remove test file erroneously checked in
* [Rust Server] Fix no features build
- Need serde_json for no-features build for undefined value structures
- Don't include `IntoHeader` type and implementations if we aren't including the client/server features
- Don't export the `IntoHeader` type at all - it's internal
* Update samples
2020-04-05 19:08:39 +01:00
Richard Whitehouse
d0d0252fff
[Rust Server] Don't use structs in models ( #5557 )
...
* [Rust Server] Don't use structs in models
This avoids namespace clashes between model names and types used.
* [Rust Server] Handle models named after results
* [Rust Server] Add test for result models
* Update samples
2020-03-29 20:04:56 +01:00
William Cheng
a0ca253218
update samples ( #5722 )
2020-03-27 13:55:55 +08:00
Richard Whitehouse
cfe3b86d70
[Rust Server] Handle text/xml correctly ( #5660 )
...
* [Rust Server] Handle text/xml correctly
Treat application/xml the same as text/xml as per RFC 7303
* [Rust Server] Add test for text/xml
* Update samples
2020-03-26 17:14:13 +00:00
Richard Whitehouse
cff1f1ce80
[Rust Server] Support operation overriding server path on client ( #5554 )
...
* [Rust Server] Support operation overriding server on the client
* [Rust Server] Test operation overriding sever
* Update samples
2020-03-24 16:41:11 +00:00
Richard Whitehouse
05ace4f43f
[Rust Server] Preserve path provided in base path ( #5555 )
...
* Preserve path provided in base path
* Update samples
2020-03-24 09:25:48 +00:00
Richard Whitehouse
28ea718004
[Rust Server] Run rustfmt over rust-server output ( #5558 )
...
* Run rustfmt over rust-server output
Automatically run rustfmt over rust-server output if --enable-post-process-file is set
* Update samples
* Add note about configuring post processing
2020-03-24 00:09:40 +00:00
Richard Whitehouse
15a2390fe5
[Rust Server] Flag responses as must use ( #5559 )
...
* [Rust Server] Flag responses as must use if there is more than a single option
* Update samples
2020-03-23 18:47:12 +00:00
Richard Whitehouse
806562bb05
[Rust Server] Retire mimetypes modules ( #5560 )
...
* Retire mimetypes module to prevent collision in mimetype identifiers
* Update samples
2020-03-23 13:04:29 +00:00
Richard Whitehouse
be983b5212
[Rust Server] Build APIs which have no available examples ( #5561 )
...
* [Rust Server] Build APIs which have no examples
* [Rust Server] Add test for APIs with no examples
* Update samples
2020-03-22 19:54:48 +00:00
Richard Whitehouse
b0520a346d
[Rust Server] Support multiple identical MIME types ( #5562 )
...
* Support multiple identical MIME types in a multipart request
* Add test for multiple identical MIME types
* Update samples
2020-03-22 15:30:37 +00:00
Richard Whitehouse
058d1d2aa0
[Rust Server] Return 405 Method Not Allowed ( #5563 )
...
* Return 405 Method Not Allowed if the path matches, but the method doesn't.
* Update samples
2020-03-22 11:57:36 +00:00
Richard Whitehouse
4aefc9ba33
[Rust Sever] Upgrade to openssl 0.10 ( #5564 )
...
* [Rust Server] Upgrade to openssl 0.10
Use hyper-openssl/openssl instead of hyper-tls/native-tls/openssl on Linux
* Update samples
2020-03-19 21:05:16 +00:00
Richard Whitehouse
16646b39c1
[Rust Server] Make parse error Display-able ( #5490 )
...
* [Rust Server] Make parse error displayable
Change error type to be displayable to prevent compile errors
* [Rust Server] Add test for enum in path
* Update samples
2020-03-08 11:12:17 +00:00
Richard Whitehouse
e4be8a107f
[Rust Server] Test allOf objects including base properties ( #5457 )
...
* [Rust Server] Add operationIds for rust-server-test
* [Rust Server] Add test for allOf
* Update samples
2020-03-07 20:53:13 +00:00
Richard Whitehouse
b60fc900b2
[Rust Server] Support OpenAPI v3 callbacks ( #5405 )
...
* [Rust Server] Support Callbacks
* [Rust Server] Support callbacks in the examples
* [Rust Server] Update features documentation
* [Rust Server] Mark as supporting callbacks
* Update samples
* [Rust Server] Add tests for callbacks
* [Rust Server] Fix README
Don't suggest examples which don't exist
2020-03-07 19:24:42 +00:00
Richard Whitehouse
dc0da57f96
[Rust Server] Suffix reserved words with _ ( #5455 )
...
* [Rust Server] Suffix reserved words with _
Suffix reserved words with an underscore instead of prefixing them.
This follows convention in the Rust community, as prefixing with an underscore
indicates an unused variable in Rust.
* Update samples
2020-03-01 00:23:00 +00:00
Richard Whitehouse
a196296e57
[Rust Server] Support RFC 7386 ( #5454 )
...
* [Rust Server] Support RFC 7386
Support application/merge-patch+json as defined by RFC 7386 -
https://tools.ietf.org/html/rfc7386
Handle exactly the same as application/json.
* [Rust Server] Add test for RFC 7386
* Update samples
2020-02-29 21:54:11 +00:00
Richard Whitehouse
f32b1463bc
[Rust Server] Support numeric operation IDs ( #5453 )
...
* [Rust Server] Support operation IDs which begin with a number
* [Rust Server] Add test for a numeric operation ID
* Update samples
2020-02-29 19:23:54 +00:00
Richard Whitehouse
a6e96b4971
[Rust Server] Handle numeric response description ( #5452 )
...
* [Rust Server] Handle response descriptions which start with a number.
* [Rust Server] Add test for numeric response descriptions
* Update samples
2020-02-29 14:54:47 +00:00
Richard Whitehouse
f5c5b91f83
[Rust Server] Nullable fixes ( #5408 )
...
* [Rust Server] Nullable fixes
* [Rust Server] Add tests for nullable cases
* Update samples
2020-02-29 13:37:12 +00:00
Richard Whitehouse
ca9376fdbb
[Rust Server] Support RFC 7807 ( #5407 )
...
* Support RFC 7807 - Problem Details for HTTP APIs
* Add test for RFC 7807
* Update samples
2020-02-26 18:18:01 +00:00
Richard Whitehouse
1b3094be87
[Rust Server] Add support for untyped properties and models ( #5339 )
...
* [Rust Server] Add support for untyped properties
* [Rust Server] Improve support for untyped data
* Update samples
2020-02-22 20:29:51 +00:00
Richard Whitehouse
71aef72bbd
[Rust Server] Support objects as query parameters ( #5338 )
...
- Support objects as query parameters
- Update samples
2020-02-22 18:25:57 +00:00
Richard Whitehouse
71f532072b
[Rust Server] Support header objects ( #5337 )
...
[Rust Server] Support header objects
Support operations with objects in the header
2020-02-22 15:55:26 +00:00
Richard Whitehouse
84b6804d8f
[Core, Rust Server] Support multipart/related requests ( #5015 )
...
* [Core, Rust] Support multipart/related requests
* Treat multipart/related as a type of form data
2020-01-26 20:39:43 -05:00
Richard Whitehouse
52e09e2ffa
[Rust Server] Handle array of objects inside an object correctly ( #5044 )
...
Use correct data type for arrays inside objects.
Add test for arrays of objects
Update samples
2020-01-25 18:23:20 +00:00
Richard Whitehouse
2714af4922
[Rust Server] Sanitise enum values ( #5042 )
...
[Rust Server] Sanitize enum values
2020-01-25 16:26:05 +00:00