Skip to content

Commit 698be88

Browse files
committed
Add operation tag and description
1 parent 3f9daef commit 698be88

File tree

2 files changed

+1286
-2
lines changed

2 files changed

+1286
-2
lines changed

openapi-converter/clients_schema_to_openapi/src/paths.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ pub fn add_endpoint(endpoint: &clients_schema::Endpoint, tac: &mut TypesAndCompo
183183

184184
// Create the operation, it will be repeated if we have several methods
185185
let operation = openapiv3::Operation {
186-
tags: vec![],
187-
summary: None,
186+
tags: vec![endpoint.name.clone()],
187+
summary: Some(endpoint.description.clone()),
188188
description: Some(endpoint.description.clone()),
189189
external_docs: tac.convert_external_docs(endpoint),
190190
operation_id: None, // set in clone_operation below with operation_counter

0 commit comments

Comments
 (0)