code generation fixes after 03e2cfad3c (#124)

This commit is contained in:
Joshua M. Clulow 2022-07-15 13:59:09 -07:00 committed by GitHub
parent 5a72e1b8e7
commit 8ad09386a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ impl<E> RequestBuilderExt<E> for RequestBuilder {
"application/x-www-form-urlencoded",
),
)
.body(serde_json::to_vec(&body).map_err(|_| {
.body(serde_urlencoded::to_string(&body).map_err(|_| {
Error::InvalidRequest("failed to serialize body".to_string())
})?))
}

View File

@ -400,7 +400,7 @@ impl Generator {
"percent-encoding = \"2.1\"",
"reqwest = { version = \"0.11\", features = [\"json\", \"stream\"] }",
"serde = { version = \"1.0\", features = [\"derive\"] }",
"serde_urlencoded = 0.7",
"serde_urlencoded = \"0.7\"",
];
if self.type_space.uses_regress() {
deps.push("regress = 0.4")