Commit Graph

93 Commits

Author SHA1 Message Date
Adam Leventhal c59c6d64ed
CLI: handling of no-content responses is lousy (#805) 2024-05-15 11:04:45 -07:00
Adam Leventhal d4decd4728
Mock code doesn't compile if path parameters are renamed (#782) 2024-04-22 09:51:38 -07:00
Adam Leventhal 85fab0d8ae
use `--limit` in the CLI to limit the full list of output items (#761) 2024-04-03 11:09:01 -07:00
John Gallagher 1a61bf1e66
Fix dropshot-pagination `_stream` client codegen (#756) 2024-04-03 09:42:05 -07:00
Rain d813145b44
update generated code for Rust 1.76 (#729) 2024-02-21 11:24:30 -08:00
Adam Leventhal dc5e1f1840
CLI: add an output interface for consumers (#708) 2024-02-05 15:01:38 -08:00
Joshua M. Clulow 3ff2ec1d5f
allow request mutation and async code in prehooks (#457) 2024-02-04 11:19:07 -08:00
Adam Leventhal 86b60220b8
explicitly ignore clippy (#702) 2024-01-24 21:48:56 -08:00
dependabot[bot] cd67545ee1
Bump typify from `7ceddf6` to `1d8e828` (#684)
* Bump typify from `7ceddf6` to `1d8e828`

Bumps [typify](https://github.com/oxidecomputer/typify) from `7ceddf6` to `1d8e828`.
- [Commits](7ceddf6644...1d8e828f29)

---
updated-dependencies:
- dependency-name: typify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* 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>
2024-01-11 10:50:00 -08:00
John Vandenberg d3e89232a3
Move test generated clients into a buildable crate (#638) 2024-01-10 16:22:57 -08:00
John Vandenberg 359f4f56cc
Allow API to reside at submodule of crate (#642) 2024-01-06 08:19:59 -08:00
Adam Leventhal 8088f55470
add docs to mods and extension traits (#677) 2024-01-06 01:01:12 -08:00
Adam Leventhal 84999308b4
don't assume a String error type for conversions (#676) 2024-01-05 23:26:43 -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] 66595ccfd6
Bump typify from `b0df7aa` to `0894f06` (#657)
* Bump typify from `b0df7aa` to `0894f06`

Bumps [typify](https://github.com/oxidecomputer/typify) from `b0df7aa` to `0894f06`.
- [Commits](b0df7aa37a...0894f06e67)

---
updated-dependencies:
- dependency-name: typify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* 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-15 16:31:24 -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
John Vandenberg 2fd9260fc4
Use crate name when emitting derive for tests (#641) 2023-12-13 00:48:59 -08:00
Adam Leventhal 4cce71069f
improve builder `TryInto` failure messages for body parameters (#646) 2023-12-12 16:58:20 -08:00
Adam H. Leventhal 2708963c5f merge race 2023-10-16 12:13:05 -07:00
Sophie Tauchert a1de78dbeb
Add support for text/plain and text/x-markdown body content types (#593) 2023-10-16 11:47:50 -07: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 d5f92a0e46
Rename internal `client` variable to help avoid collisions with input specs. (#600) 2023-10-12 15:39:06 -07:00
Ian Nickles 233cb80d94
Prefix internal variable names to help avoid collisions (#599) 2023-10-12 10:57:24 -07:00
dependabot[bot] 46d2be5eca
Bump typify from `fdfed7c` to `6cc08a7` (#534)
* Bump typify from `fdfed7c` to `6cc08a7`

Bumps [typify](https://github.com/oxidecomputer/typify) from `fdfed7c` to `6cc08a7`.
- [Commits](fdfed7c578...6cc08a71d3)

---
updated-dependencies:
- dependency-name: typify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* 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-08-08 08:30:34 -07:00
Adam Leventhal eb0d9d207a
Restructure argument processing (#523)
Restructure argument processing to close up some corner cases where we didn't properly identify when the json body was required and to make it more extensible to other types of parameters such as those derived from enum variants.
2023-07-14 17:37:54 -07:00
Adam Leventhal 66c890807f
CLI: improve required settings for paginated operations (#469) 2023-05-15 08:59:07 -07:00
Adam Leventhal e7c4c16d9f
add special handling for optional query parameters (#468) 2023-05-12 15:04:00 -07:00
Adam Leventhal b94123e5ac
httpmock patterns are too general (#467) 2023-05-12 13:19:09 -07:00
Adam Leventhal db1826841e
add a json-body option to specify the full body (#458) 2023-05-07 20:43:45 -07:00
Benjamin Leonard 1121d5948c
Support for `long_about` in `generated_cli` (#456) 2023-05-04 08:36:17 -07:00
Adam Leventhal d0d1137a3a
generated streaming interfaces should honor the limit input (#455) 2023-05-03 20:53:28 -07:00
Adam Leventhal 29ac543eb5
CLI: simple handling of paginated operations (#454) 2023-05-03 11:42:38 -07:00
Adam Leventhal 6936ecc51a
update typify (#452) 2023-05-02 13:55:50 -07:00
Adam Leventhal 6a515c304f
CLI: generate a fixed list of valid values for enum types (#442) 2023-04-26 15:15:07 -07:00
Dillen Meijboom d329bc0912
Add support for wasm (#278) 2023-04-25 21:50:04 -07:00
John Vandenberg b717086ef3
Remove rustfmt from progenitor-impl (#368) 2023-04-25 09:11:52 -07:00
Adam Leventhal 7da8db8544
generate `httpmock`-based testing code (#437) 2023-04-24 19:03:33 -07:00
Adam Leventhal a9e76608ca
add accept header (#436) 2023-04-24 17:42:22 -07:00
Adam H. Leventhal a4abdf60c5 cli: not all arguments are used to construct the body parameter 2023-04-04 11:52:25 -07:00
Adam Leventhal e04bb171f6
cli: handle optional body parameters (#401) 2023-03-30 12:27:25 -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
Adam Leventhal 94db6ff74f
complete CLI overrides to allow consumers to modify commands and execution (#399) 2023-03-29 16:50:41 -07:00
Adam Leventhal 10dc4cafc6
CLI generation prototype (#349) 2023-03-28 14:54:05 -07:00
Adam Leventhal 297a0c2f0a
builds can fail if TryFrom is not imported... sufficiently (#393) 2023-03-27 10:45:25 -07:00
Adam Leventhal d0b9842ce3
use body builder types in operation builders (#385) 2023-03-23 18:11:44 -07:00
Adam Leventhal 3f47ff856c
update dropshot and typify (#383) 2023-03-22 22:56:25 -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 1b942d1146
correct builder error message for Option types (#327) 2023-02-05 20:31:40 -08:00
Adam Leventhal c26af3bd95
update typify; update tests (#326) 2023-02-04 17:22:55 -08:00
Adam Leventhal 88ff3cf1e0
update typify and nexus.json (#323) 2023-01-31 21:28:12 -08:00