hive-c0re: drop utoipa-swagger-ui, serve openapi.json directly

Swagger UI itself is nginx-hosted now (iris's 86a39c4c), so c0re
carrying its own vendored copy via utoipa-swagger-ui was a straight
duplicate — dropped the dependency (root Cargo.toml + hive-c0re's),
swapped the SwaggerUi::new(...).url(...) mount for a plain
/api/openapi.json GET route serving the same OpenApi doc as JSON.

Verified: cargo build/clippy/test -p hive-c0re clean, Cargo.lock
dropped utoipa-swagger-ui + utoipa-swagger-ui-vendored with no other
changes, nix fmt clean.
This commit is contained in:
damocles 2026-08-02 21:09:28 +02:00 committed by mara
commit f457d9ce7b
4 changed files with 16 additions and 124 deletions

View file

@ -116,8 +116,3 @@ hmac = "0.13"
sha2 = "0.11"
utoipa = { version = "5", features = ["axum_extras"] }
utoipa-axum = "0.2"
# "vendored" bundles a pinned Swagger UI dist via utoipa-swagger-ui-vendored
# instead of the crate's default curl-download build script — required in
# the nix sandbox, which has no network at build time outside the
# Cargo.lock-pinned dependency fetch.
utoipa-swagger-ui = { version = "9", features = ["axum", "vendored"] }