Commit Graph

18 Commits

Author SHA1 Message Date
Adam Leventhal 1b942d1146
correct builder error message for Option types (#327) 2023-02-05 20:31:40 -08:00
Adam Leventhal 96af7b5a09
documentation examples sometimes are not formatted properly (#303) 2023-01-13 10:59:21 -08:00
Adam Leventhal a5fea0b061
fix a warning with base64 (#300) 2023-01-11 14:19:55 -08:00
Artem Medvedev e34756583a
feat: support header parameters (#210) 2023-01-04 11:14:37 -08:00
Adam Leventhal dcee6a4eb2
clippy nits (#269) 2022-12-07 18:46:14 -08:00
Augustus Mayo 12d4adbc6c
Path level parameters (#262) 2022-12-01 22:50:50 -08:00
liffy 4e2dcc5365
Generate a Client method for Dropshot websocket channels (#183)
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 <>
2022-09-28 13:40:07 -07:00
Adam Leventhal 7e5dc6586c
gussy up docs for release (#193)
make TryInto use fully specified as std::convert::TryInto
2022-09-10 17:15:14 -07:00
Adam Leventhal eac966effc
move format checking from the command to the library (#179) 2022-08-29 11:16:34 -07:00
Adam Leventhal e79ac19ae7
Add prelude for Client and extension traits (when they exist) (#176) 2022-08-27 08:23:02 -07:00
Karen Cárcamo ba00230176
Derive Debug for types (#145)
* Derive Debug for client and types

* run tests

* update changelog

* refactor
2022-08-03 13:18:43 +12:00
Adam H. Leventhal 4dce0641e2 typos 2022-07-20 17:03:25 -07:00
Adam Leventhal bfd194f39c
Change builder methods for setting a parameter with type T to accept a TryInto<T> (#133)
This makes constrained types a bit more
ergonomic and will allow us to accept fallible builders more easily
2022-07-18 11:55:21 -07:00
Adam Leventhal 03e2cfad3c
add support for application/x-www-form-urlencoded bodies (#109)
* add support for application/x-www-form-urlencoded bodies

* self review

* alphabetizing

* remove commented code

* update changelog
2022-07-07 18:35:36 -07:00
Adam Leventhal 9b28ac87c6
add an optional builder pattern as well as extension traits for tags when using the builder interface (#86) 2022-07-02 19:09:38 -07:00
Adam Leventhal eec8526ba5
cleanup and documentation (#67) 2022-05-21 18:00:05 -07:00
Adam Leventhal 7f1b98f7b1
pull in the most recent typify (#44)
change symbol sanitization accordingly (use heck rather than convert_case)
fix: OpenAPI -> JSON Schema conversion was losing title and docs
remove assert that there are no tag (but still ignore them)
2022-05-09 17:30:08 -07:00
Adam Leventhal bbf81dfe7d
reorganize some code in anticipation of some larger changes (#40) 2022-04-01 22:30:23 -07:00