Use the toml syntax highlighter and format the code snippets as toml
instead of diff, so users can copy-paste it more easily, without having
to edit out the diff makers (+) by hand when they add the snippets to
their Cargo.toml / etc.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
* Mention cli and httpmock in README.md
* Add fix by @ahirner
Co-authored-by: Alexander Hirner <6055037+ahirner@users.noreply.github.com>
---------
Co-authored-by: Alexander Hirner <6055037+ahirner@users.noreply.github.com>
- Add docstring to the `Client`, based on the OpenAPI title and
description, if provided.
- Add docstrings to the constructors and getters shared by all generated
clients.
- Update expectorate tests.
- Small typo-fix in README.
Generated methods return `ResponseValue<reqwest::Upgrade`, which may be
passed to a websocket protocol implementation such as
`tokio_tungstenite::WebSocketStream::from_raw_stream(rv.into_inner(), ...)`
for the purpose of implementing against the raw websocket connection, but
may later be extended as a generic to allow higher-level channel message
definitions.
Per the changelog, consumers will need to depend on reqwest 0.11.12 or
newer for HTTP Upgrade support, as well as base64 and rand if any
endpoints are websocket channels:
```
[dependencies]
reqwest = { version = "0.11.12" features = ["json", "stream"] }
base64 = "0.13"
rand = "0.8"
```
Co-authored-by: lif <>