Adam Leventhal
86b60220b8
explicitly ignore clippy ( #702 )
2024-01-24 21:48:56 -08:00
John Vandenberg
4a182d734e
Require docs for public members ( #614 )
2024-01-06 11:30:42 -08:00
Adam Leventhal
8088f55470
add docs to mods and extension traits ( #677 )
2024-01-06 01:01: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
Dillen Meijboom
d329bc0912
Add support for wasm ( #278 )
2023-04-25 21:50:04 -07:00
Adam Leventhal
362b6b728a
remove generate_text ( #440 )
2023-04-25 21:47:40 -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
4eb8cd6c21
make the OpenAPI info.version field accessible through the generated client ( #400 )
2023-03-29 23:02:17 -07:00
Adam Leventhal
10dc4cafc6
CLI generation prototype ( #349 )
2023-03-28 14:54:05 -07:00
Adam Leventhal
88ff3cf1e0
update typify and nexus.json ( #323 )
2023-01-31 21:28:12 -08:00
Adam Leventhal
9f0a9910ab
Let consumers replace types by name ( #317 )
2023-01-24 14:55:16 -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
bnaecker
6eaacdfc93
Add method for referring to Client's inner type ( #302 )
2023-01-13 15:08:18 -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
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
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
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
Adam Leventhal
e4221a1350
Typify update for builder structs ( #171 )
2022-08-18 11:58:55 -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 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 H. Leventhal
a149b40923
missing quotes on regress version
2022-07-17 09:54:16 -07:00
Joshua M. Clulow
8ad09386a7
code generation fixes after 03e2cfad3c
( #124 )
2022-07-15 13:59:09 -07:00
Adam Leventhal
0c7cace799
add context to error messages ( #127 )
2022-07-14 21:25:48 -07:00
dependabot[bot]
75519247fa
Bump typify from `7b5f72b` to `f58c5e2` ( #117 )
...
* Bump typify from `7b5f72b` to `f58c5e2`
Bumps [typify](https://github.com/oxidecomputer/typify ) from `7b5f72b` to `f58c5e2`.
- [Release notes](https://github.com/oxidecomputer/typify/releases )
- [Commits](7b5f72b1e4...f58c5e23b1
)
---
updated-dependencies:
- dependency-name: typify
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* fixups and output update
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
2022-07-12 10:57:06 -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
6796e0c1ca
extra derives are accidentally ignored ( #105 )
2022-07-02 22:28:06 -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
3cd1eae3f5
improve docs and uuid version handling ( #65 )
2022-05-20 14:52:37 -07:00
Adam Leventhal
1af79ebec7
honor default values for struct properties ( #50 )
2022-05-12 15:07:48 -07:00
Adam Leventhal
bbf81dfe7d
reorganize some code in anticipation of some larger changes ( #40 )
2022-04-01 22:30:23 -07:00
Adam Leventhal
75348207d7
improve rustdoc output for generated crates ( #37 )
2022-03-17 23:54:10 -07:00
Adam Leventhal
ea80069ef3
Handle byte streams for both success and error responses ( #35 )
2022-03-15 16:11:47 -07:00
Adam Leventhal
ae7c178e21
Correct renaming of path component identifiers ( #34 )
2022-03-08 14:31:56 -08:00
Adam Leventhal
579260a943
correct handling of parameters ( #32 )
...
- improve parameter handling for names that are invalid rust identifiers
- fix broken logic for non-optional query parameters
2022-03-04 10:58:16 -08:00
Adam Leventhal
25192b5dc1
Add a wrapper types for success and error responses ( #26 )
2022-02-08 08:59:38 -08:00
Adam H. Leventhal
f1f9e2e938
improve santization
2022-01-16 09:09:30 -08:00
Adam Leventhal
aff25f2292
Allow consumers to specify additional derive macros for generated types ( #21 )
2022-01-14 18:01:59 -08:00
Adam Leventhal
e47fc93748
generate iterators over dropshot paginated interfaces ( #19 )
...
* Adds support for interating with Streams over interfaces that are tagged
with the x-dropshot-pagination extension. This requires clients to use
the futures crate.
Adds tests that compile generated clients.
Updates nexus.json to reflect a more recent omicron API.
Changes all generated methods to have a lifetime ('a) bound on all
references. This isn't necessary for most methods, but greatly
simplifies generation of the associated paginated interface.
2022-01-05 12:02:46 -08:00
Adam Leventhal
e58ebd18fa
introduce an intermediate form ( #18 )
...
introduce an intermediate form; this is going to be used to generate a few different things:
- an interator interface for paginated APIs; the IR will let us re-use
the typify types
- a CLI generator that will generate calls into the generated client
- an automated test harness that will validate the generated client
against a mock server
2021-12-09 18:15:24 -08:00
Adam Leventhal
a3fbbc06ba
fixes to support omicron clients ( #14 )
2021-11-06 23:24:03 -07:00
Adam Leventhal
05dcf08091
update for typify ( #13 )
2021-11-02 11:16:55 -07:00