Skip to content

Commit 3d36b67

Browse files
Bump serde from 1.0.133 to 1.0.136 (#260)
* Bump serde from 1.0.133 to 1.0.136 Bumps [serde](https://github.com/serde-rs/serde) from 1.0.133 to 1.0.136. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.133...v1.0.136) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * fix tests for serde message changes * update changelog Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Pacheco <[email protected]>
1 parent 5962a64 commit 3d36b67

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ https://github.com/oxidecomputer/dropshot/compare/v0.6.0\...HEAD[Full list of co
2424

2525
* https://github.com/oxidecomputer/dropshot/pull/198[#198] Responses that used `()` (the unit type) as their `Body` type parameter previously (and inaccurately) were represented in OpenAPI as an empty `responseBody`. They are now more accurately represented as a body whose value is `null` (4 bytes). We encourage those use cases to instead use either `HttpResponseUpdatedNoContent` or `HttpResponseDeleted` both of which have empty response bodies. If there are other situations where you would like a response type with no body, please file an issue.
2626
* https://github.com/oxidecomputer/dropshot/pull/252[#252] Endpoints specified with the `#[endpoint ..]` attribute macro now use the first line of a doc comment as the OpenAPI `summary` and subsequent lines as the `description`. Previously all lines were used as the `description`.
27+
* https://github.com/oxidecomputer/dropshot/pull/260[#260] Pulls in a newer serde that changes error messages around parsing NonZeroU32.
2728

2829
== 0.6.0 (released 2021-11-18)
2930

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dropshot/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ version = "0.14"
4848
features = [ "full" ]
4949

5050
[dependencies.serde]
51-
version = "1.0.133"
51+
version = "1.0.136"
5252
features = [ "derive" ]
5353

5454
[dependencies.slog]

dropshot/tests/test_pagination.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ async fn test_paginate_errors() {
227227
let test_cases = vec![
228228
ErrorTestCase {
229229
path: "/intapi?limit=0".to_string(),
230-
message: "unable to parse query string: expected a non-zero value",
230+
message: "unable to parse query string: invalid value: \
231+
integer `0`, expected a nonzero u32",
231232
},
232233
ErrorTestCase {
233234
path: "/intapi?limit=-3".to_string(),
@@ -427,7 +428,8 @@ async fn test_paginate_empty() {
427428
assert_error(
428429
&client,
429430
"/empty?limit=0",
430-
"unable to parse query string: expected a non-zero value",
431+
"unable to parse query string: invalid value: integer `0`, \
432+
expected a nonzero u32",
431433
)
432434
.await;
433435

0 commit comments

Comments
 (0)