Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions engine/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ fancy-regex = "0.14"
rusqlite = { version = "0.32", features = ["bundled", "backup"] }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order", "float_roundtrip"] }
# Derives the operation schemas from the models in `application/models.rs`,
# which replaces the table recorded from pydantic for the operations they cover.
# Derives every operation schema from the models in `application/models`.
schemars = "1.2.3"
toml = "0.8"
sha2 = "0.10"
Expand Down
3 changes: 2 additions & 1 deletion engine/core/src/adapters/http/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub fn openapi() -> Value {
for operation in registry.for_transport(Transport::Http) {
let path = format!("/api{}", operation.http_route().path);
let entry = paths.entry(path).or_insert_with(|| json!({}));
entry[method_name(operation.http_route().method)] = operation_object(operation, &mut components);
entry[method_name(operation.http_route().method)] =
operation_object(operation, &mut components);
}
let hand: Value = serde_json::from_str(HAND_ROUTES).expect("openapi_hand.json is JSON");
for (path, item) in hand["paths"].as_object().into_iter().flatten() {
Expand Down
Loading
Loading