Commit Graph

103 Commits

Author SHA1 Message Date
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] 3375ec9439
Bump syn from 1.0.109 to 2.0.3 (#371)
* Bump syn from 1.0.109 to 2.0.3

Bumps [syn](https://github.com/dtolnay/syn) from 1.0.109 to 2.0.3.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.109...2.0.3)

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

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

* fixes and updates

---------

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-20 10:33:23 -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
dependabot[bot] ba8e14ce9b
Bump hyper from 0.14.24 to 0.14.25 (#359)
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.24 to 0.14.25.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.25/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.24...v0.14.25)

---
updated-dependencies:
- dependency-name: hyper
  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-03-13 09:00:15 -07:00
dependabot[bot] dbb4e52734
Bump unicode-ident from 1.0.6 to 1.0.8 (#352)
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.6 to 1.0.8.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases)
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.6...1.0.8)

---
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-03-06 11:23:36 -08:00
dependabot[bot] cbe875ad1a
Bump schemars from 0.8.11 to 0.8.12 (#346)
Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.11 to 0.8.12.
- [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.11...v0.8.12)

---
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-02-28 13:40:19 -08:00
John Vandenberg 82c979df65
Show missing schema ref (#325) 2023-02-20 16:11:35 -08:00
dependabot[bot] a5fc1d288a
Bump http from 0.2.8 to 0.2.9 (#342) 2023-02-20 16:05:09 -08:00
dependabot[bot] 49885e58f1
Bump hyper from 0.14.23 to 0.14.24 (#329)
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.23 to 0.14.24.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.23...v0.14.24)

---
updated-dependencies:
- dependency-name: hyper
  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-02-06 09:00:14 -08:00
dependabot[bot] 487d4e7060
Bump heck from 0.4.0 to 0.4.1 (#331)
Bumps [heck](https://github.com/withoutboats/heck) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/withoutboats/heck/releases)
- [Changelog](https://github.com/withoutboats/heck/blob/master/CHANGELOG.md)
- [Commits](https://github.com/withoutboats/heck/commits)

---
updated-dependencies:
- dependency-name: heck
  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-02-06 08:59:57 -08: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
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 9f0a9910ab
Let consumers replace types by name (#317) 2023-01-24 14:55:16 -08:00
John Vandenberg 7e64a98fd5
fix clippy issues (#301) 2023-01-18 00:07:27 -08:00
John Vandenberg 8836d77398
generate Cargo.toml using built dependency versions (#298) 2023-01-16 19:21:36 -08:00
Adam Leventhal 46d2df0e2a
bump versions (#305) 2023-01-15 19:59:53 -08:00
John Vandenberg 1ef131a244
Add yaml support (#227) 2023-01-14 08:58:57 -08:00
bnaecker 6eaacdfc93
Add method for referring to Client's inner type (#302) 2023-01-13 15:08:18 -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
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
dependabot[bot] de6895a040
Bump typify from `da0505b` to `5106273` (#291)
* Bump typify from `da0505b` to `5106273`

Bumps [typify](https://github.com/oxidecomputer/typify) from `da0505b` to `5106273`.
- [Release notes](https://github.com/oxidecomputer/typify/releases)
- [Commits](da0505b0b4...5106273f3d)

---
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-02 19:42:54 -08:00
John Vandenberg 5b683c669f
Disable default features of reqwest and chrono (#232) 2022-12-27 15:59:45 -08:00
Adam Leventhal 57031d77d3
Allow conversion overrides by specifying a schema (#280) 2022-12-27 11:55:57 -08:00
dependabot[bot] dc273ce3c7
Bump unicode-ident from 1.0.5 to 1.0.6 (#274)
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases)
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.5...1.0.6)

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

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>
2022-12-19 10:41:19 -08:00
Adam Leventhal dcee6a4eb2
clippy nits (#269) 2022-12-07 18:46:14 -08:00
dependabot[bot] 83ed0e14bb
Bump typify from `c840ea7` to `55d9fa1` (#264)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2022-12-02 11:09:46 -05:00
Augustus Mayo 12d4adbc6c
Path level parameters (#262) 2022-12-01 22:50:50 -08:00
Adam Leventhal 68290b08e0
allow for type adjustments: renames, and additional derives (#234) 2022-11-14 10:51:05 -08:00
dependabot[bot] 3f79569d4f
Bump hyper from 0.14.20 to 0.14.23 (#237)
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.20 to 0.14.23.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.23/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.20...v0.14.23)

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

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>
2022-11-13 13:38:49 -08:00
dependabot[bot] 48d717b62f
Bump regex from 1.6.0 to 1.7.0 (#229)
Bumps [regex](https://github.com/rust-lang/regex) from 1.6.0 to 1.7.0.
- [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.6.0...1.7.0)

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

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>
2022-11-08 11:07:50 -08:00
dependabot[bot] 5c5ce25a86
Bump unicode-ident from 1.0.4 to 1.0.5 (#213)
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases)
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.4...1.0.5)

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

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>
2022-10-10 10:49:48 -07:00
dependabot[bot] 494f4b479e
Bump schemars from 0.8.10 to 0.8.11 (#207)
Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.10 to 0.8.11.
- [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.10...v0.8.11)

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

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>
2022-10-04 22:29:06 -07: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
dependabot[bot] c9a1a224e8
Bump unicode-ident from 1.0.3 to 1.0.4 (#195)
Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/dtolnay/unicode-ident/releases)
- [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.3...1.0.4)

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

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>
2022-09-19 11:10:59 -07:00
Adam H. Leventhal af1d01c264 starting progenitor 0.2.1-dev after releasing 0.2.0 2022-09-10 17:19:08 -07:00
Adam H. Leventhal 96179efc18 release progenitor 0.2.0 2022-09-10 17:16:50 -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 H. Leventhal ad8be1fdd5 update to typify 0.0.10 2022-09-10 09:41:07 -07:00
Adam Leventhal eac966effc
move format checking from the command to the library (#179) 2022-08-29 11:16:34 -07:00