John Vandenberg
d3e89232a3
Move test generated clients into a buildable crate ( #638 )
2024-01-10 16:22:57 -08:00
Adam Leventhal
8088f55470
add docs to mods and extension traits ( #677 )
2024-01-06 01:01:12 -08:00
dependabot[bot]
3685587202
Bump typify from `0894f06` to `000c04b` ( #658 )
...
* Bump typify from `0894f06` to `000c04b`
Bumps [typify](https://github.com/oxidecomputer/typify ) from `0894f06` to `000c04b`.
- [Commits](0894f06e67...000c04b288
)
---
updated-dependencies:
- dependency-name: typify
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* fixture data
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2023-12-18 11:13:01 -08:00
dependabot[bot]
cbdd704d73
Bump typify from `d6d8599` to `b0df7aa` ( #648 )
...
* Bump typify from `d6d8599` to `b0df7aa`
Bumps [typify](https://github.com/oxidecomputer/typify ) from `d6d8599` to `b0df7aa`.
- [Commits](d6d85998d2...b0df7aa37a
)
---
updated-dependencies:
- dependency-name: typify
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* fixtures
* update fixtures
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2023-12-13 01:14:28 -08:00
Ian Nickles
6dc2a0ff2d
Generate unique internal var names and add tests for name collisions. ( #601 )
...
* Generate unique identifiers for internal variable names instead of using a
static prefix.
* Add tests for previous name collision issues.
* only prefix when needed.
Co-authored-by: Adam Leventhal <ahl@oxide.computer>
* add missing test invocation.
* update test fixtures per aaa40855485ca3c2ccf338c07d595ffc907975a1.
---------
Co-authored-by: Adam Leventhal <ahl@oxide.computer>
2023-10-16 11:44:24 -07:00
Ian Nickles
233cb80d94
Prefix internal variable names to help avoid collisions ( #599 )
2023-10-12 10:57:24 -07:00
Dillen Meijboom
d329bc0912
Add support for wasm ( #278 )
2023-04-25 21:50:04 -07:00
Adam Leventhal
a9e76608ca
add accept header ( #436 )
2023-04-24 17:42:22 -07:00
Adam Leventhal
4eb8cd6c21
make the OpenAPI info.version field accessible through the generated client ( #400 )
2023-03-29 23:02:17 -07:00
dependabot[bot]
c922600923
Bump typify from `d1cae0f` to `b35e5c0` ( #366 )
...
* Bump typify from `d1cae0f` to `b35e5c0`
Bumps [typify](https://github.com/oxidecomputer/typify ) from `d1cae0f` to `b35e5c0`.
- [Release notes](https://github.com/oxidecomputer/typify/releases )
- [Commits](d1cae0f7d5...b35e5c06e7
)
---
updated-dependencies:
- dependency-name: typify
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* update fixture data
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2023-03-17 15:39:46 -07:00
Adam Leventhal
c26af3bd95
update typify; update tests ( #326 )
2023-02-04 17:22:55 -08:00
dependabot[bot]
713138673f
Bump typify from `c18d045` to `cd1f95b` ( #322 )
...
* Bump typify from `c18d045` to `cd1f95b`
Bumps [typify](https://github.com/oxidecomputer/typify ) from `c18d045` to `cd1f95b`.
- [Release notes](https://github.com/oxidecomputer/typify/releases )
- [Commits](c18d0452db...cd1f95b66b
)
---
updated-dependencies:
- dependency-name: typify
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* update output
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2023-01-30 12:17:51 -08:00
Adam Leventhal
32f2089f41
update typify + fixture data ( #318 )
2023-01-25 09:19:15 -08:00
Adam Leventhal
a5fea0b061
fix a warning with base64 ( #300 )
2023-01-11 14:19:55 -08:00
bnaecker
ba189e6323
Add docstrings to the generated Client ( #295 )
...
- 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.
2023-01-07 18:05:33 -08:00
Artem Medvedev
e34756583a
feat: support header parameters ( #210 )
2023-01-04 11:14:37 -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