Skip to content

Commit 935ab88

Browse files
committed
editoast: bump utoipa from 3.5.0 to 4.1.0
1 parent 274ec46 commit 935ab88

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

editoast/Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

editoast/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rangemap = "1.4.0"
1212
serde = "1.0.193"
1313
serde_derive = "1.0.193"
1414
serde_json = "1.0.108"
15-
utoipa = { version = "3.5.0", features = ["actix_extras", "chrono", "uuid"] }
15+
utoipa = { version = "4.1.0", features = ["actix_extras", "chrono", "uuid"] }
1616

1717
[dependencies]
1818
# For batch dependcy updates see https://osrd.fr/en/docs/guides/contribute/batch-updating-dependencies/

editoast/src/views/openapi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct OpenApiPathScope {
2929

3030
#[allow(unused)]
3131
pub enum Dispatch {
32-
Path(&'static str, PathItem),
32+
Path(String, PathItem),
3333
Scope(Box<OpenApiPathScope>),
3434
}
3535

@@ -60,7 +60,7 @@ impl OpenApiPathScope {
6060
}
6161
}
6262

63-
pub fn route(mut self, openapi_path: &'static str, openapi_pathitem: PathItem) -> Self {
63+
pub fn route(mut self, openapi_path: String, openapi_pathitem: PathItem) -> Self {
6464
self.paths
6565
.push_back(Dispatch::Path(openapi_path, openapi_pathitem));
6666
self

0 commit comments

Comments
 (0)