Commit Graph

185 Commits

Author SHA1 Message Date
Adam Leventhal dc5e1f1840
CLI: add an output interface for consumers (#708) 2024-02-05 15:01:38 -08:00
dependabot[bot] dc942604e3
Bump indexmap from 2.2.1 to 2.2.2 (#712)
Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.2.1 to 2.2.2.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.1...2.2.2)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 08:39:20 -08:00
Joshua M. Clulow 3ff2ec1d5f
allow request mutation and async code in prehooks (#457) 2024-02-04 11:19:07 -08:00
dependabot[bot] 0014eda6be
Bump indexmap from 2.1.0 to 2.2.1 (#704)
Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.1.0 to 2.2.1.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.1.0...2.2.1)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-02 10:57:47 -08:00
dependabot[bot] c63ff54367
Bump serde_json from 1.0.111 to 1.0.113 (#703)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.111 to 1.0.113.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.111...v1.0.113)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-02 10:57:37 -08:00
Adam Leventhal 86b60220b8
explicitly ignore clippy (#702) 2024-01-24 21:48:56 -08:00
John Vandenberg a0cd9438e3
Fix spelling (#685) 2024-01-16 09:18:39 -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 4a182d734e
Require docs for public members (#614) 2024-01-06 11:30:42 -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] 4625065afd
Bump schemars from 0.8.13 to 0.8.16 (#627)
Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.13 to 0.8.16.
- [Release notes](https://github.com/GREsau/schemars/releases)
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.13...v0.8.16)

---
updated-dependencies:
- dependency-name: schemars
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-30 15:16:53 -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
Adam H. Leventhal 807a99ee17 use github typify dep again 2023-12-15 17:15:19 -08:00
Adam H. Leventhal fe906270c4 release progenitor 0.5.0 2023-12-15 17:09:49 -08:00
Adam H. Leventhal 1528cdd9c4 prep for 0.5.0 release 2023-12-15 16:58:37 -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] 4bc161e17b
Bump openapiv3 from 2.0.0-rc.1 to 2.0.0 (#651)
Bumps [openapiv3](https://github.com/glademiller/openapiv3) from 2.0.0-rc.1 to 2.0.0.
- [Changelog](https://github.com/glademiller/openapiv3/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glademiller/openapiv3/compare/v2.0.0-rc.1...v2.0.0)

---
updated-dependencies:
- dependency-name: openapiv3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 01:24:12 -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
dependabot[bot] 8eee0e3a20
Bump rustfmt-wrapper from 0.2.0 to 0.2.1 (#624)
Bumps [rustfmt-wrapper](https://github.com/oxidecomputer/rustfmt-wrapper) from 0.2.0 to 0.2.1.
- [Changelog](https://github.com/oxidecomputer/rustfmt-wrapper/blob/main/CHANGELOG.adoc)
- [Commits](https://github.com/oxidecomputer/rustfmt-wrapper/commits)

---
updated-dependencies:
- dependency-name: rustfmt-wrapper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 08:47:28 -08:00
dependabot[bot] 9bf6bf7cd5
Bump serde_json from 1.0.107 to 1.0.108 (#620)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.107 to 1.0.108.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 19:51:50 -08:00
dependabot[bot] 4c001d3af7
Bump indexmap from 2.0.2 to 2.1.0 (#622)
Bumps [indexmap](https://github.com/bluss/indexmap) from 2.0.2 to 2.1.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/2.0.2...2.1.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 11:33:12 -08:00
dependabot[bot] 91a1c379ca
Bump regex from 1.9.6 to 1.10.2 (#611)
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.6 to 1.10.2.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.6...1.10.2)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 14:59:39 -07:00
Adam Leventhal 54ea87fa40
openapiv3 v2 (#607) 2023-10-21 00:55:40 -07: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
dependabot[bot] 08428bea99
Bump indexmap from 2.0.0 to 2.0.2 (#602)
* Bump indexmap from 2.0.0 to 2.0.2

Bumps [indexmap](https://github.com/bluss/indexmap) from 2.0.0 to 2.0.2.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/2.0.0...2.0.2)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* lock it down

---------

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-10-16 10:28:22 -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
Adam Leventhal 4dcba5928c
improve and simplify openapiv3 -> schemars conversion (#592) 2023-10-04 08:12:59 -07:00
dependabot[bot] e1451f0879
Bump expectorate from 1.0.7 to 1.1.0 (#588)
Bumps [expectorate](https://github.com/oxidecomputer/expectorate) from 1.0.7 to 1.1.0.
- [Release notes](https://github.com/oxidecomputer/expectorate/releases)
- [Commits](https://github.com/oxidecomputer/expectorate/compare/v1.0.7...v1.1.0)

---
updated-dependencies:
- dependency-name: expectorate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 09:25:20 -07:00
Adam H. Leventhal 609b63ad5e cleanup post-0.4.0 release 2023-09-25 14:41:04 -07:00
Adam H. Leventhal 73087a37fd release progenitor 0.4.0 2023-09-25 14:41:04 -07:00
Adam H. Leventhal 421029ec20 prepare for 0.4.0 release 2023-09-25 14:41:02 -07:00
dependabot[bot] b1e0004e6b
Bump serde_json from 1.0.105 to 1.0.107 (#577)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.105 to 1.0.107.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.107)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 21:12:32 -07:00
dependabot[bot] 7a99106c3d
Bump unicode-ident from 1.0.11 to 1.0.12 (#578)
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases)
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.11...1.0.12)

---
updated-dependencies:
- dependency-name: unicode-ident
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 21:12:24 -07:00
dependabot[bot] 5aed9f640b
Bump serde_json from 1.0.103 to 1.0.105 (#558)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.103 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.105)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:41:33 -07:00
dependabot[bot] ca8b4ef6f8
Bump indexmap from 1.9.3 to 2.0.0 (#508)
* Bump indexmap from 1.9.3 to 2.0.0

Bumps [indexmap](https://github.com/bluss/indexmap) from 1.9.3 to 2.0.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.9.3...2.0.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

---------

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-09-01 12:46:18 -07:00
dependabot[bot] b06dc16f78
Bump openapiv3 from 1.0.2 to 1.0.3 (#554)
* Bump openapiv3 from 1.0.2 to 1.0.3

Bumps [openapiv3](https://github.com/glademiller/openapiv3) from 1.0.2 to 1.0.3.
- [Commits](https://github.com/glademiller/openapiv3/compare/v1.0.2...v1.0.3)

---
updated-dependencies:
- dependency-name: openapiv3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* fix cargo.lock

---------

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-28 13:50:19 -07:00
Adam H. Leventhal 90fae279f9 update rustfmt (let/else) 2023-08-25 15:15:28 -07:00
dependabot[bot] 59d8894195
Bump regex from 1.8.4 to 1.9.3 (#545)
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.4 to 1.9.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.4...1.9.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 15:02:59 -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
dependabot[bot] def7d82d50
Bump unicode-ident from 1.0.9 to 1.0.11 (#529) 2023-07-24 07:20:20 -07:00
dependabot[bot] 851716e077
Bump serde_json from 1.0.100 to 1.0.103 (#526)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.100 to 1.0.103.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.100...v1.0.103)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 08:57:17 -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