Skip to content

Commit df74195

Browse files
committed
Replace okapi_operation with utoipa
The dependency okapi_operation is no longer actively maintained and blocks Restate from upgrading the schemars dependency. Moreover, it only generates OpenAPI 3.0 specs. To solve this problem, this commit replaces the okapi_operation dependency with the more actively maintained utoipa dependency which allows us to generate OpenAPI 3.1. Moreover, it will allow us to eventually drop the restate-utoipa fork once we upstream the added changes. As part of this rework, we added the SQL query endpoint to the OpenAPI documentation and removed the feature gate.
1 parent 30d0d5a commit df74195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+824
-1015
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ typify = { version = "0.5.0" }
264264
ulid = { version = "1.2.1" }
265265
url = { version = "2.5" }
266266
urlencoding = { version = "2.1" }
267+
utoipa = { version = "5.4" }
268+
utoipa-axum = "0.2"
267269
uuid = { version = "1.19.0", features = ["v7", "serde"] }
268270
vergen = { version = "8.0.0", default-features = false }
269271
xxhash-rust = { version = "0.8", features = ["xxh3"] }

crates/admin-rest-model/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99

1010
[features]
1111
default = []
12-
schema = ["dep:schemars", "restate-serde-util/schema", "restate-types/schemars"]
12+
schema = ["dep:utoipa", "restate-serde-util/utoipa-schema", "restate-types/utoipa-schema"]
1313

1414
[dependencies]
1515
restate-workspace-hack = { workspace = true }
@@ -23,7 +23,7 @@ derive_more = { workspace = true }
2323
http = { workspace = true }
2424
http-serde = { workspace = true }
2525
humantime = { workspace = true }
26-
schemars = { workspace = true, optional = true }
26+
utoipa = { workspace = true, optional = true }
2727
serde = { workspace = true }
2828
serde_json = { workspace = true }
2929
serde_with = { workspace = true }

0 commit comments

Comments
 (0)