Skip to content

Commit

Permalink
Add operation tag and description
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Oct 4, 2023
1 parent 3f9daef commit 698be88
Show file tree
Hide file tree
Showing 2 changed files with 1,286 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openapi-converter/clients_schema_to_openapi/src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ pub fn add_endpoint(endpoint: &clients_schema::Endpoint, tac: &mut TypesAndCompo

// Create the operation, it will be repeated if we have several methods
let operation = openapiv3::Operation {
tags: vec![],
summary: None,
tags: vec![endpoint.name.clone()],
summary: Some(endpoint.description.clone()),
description: Some(endpoint.description.clone()),
external_docs: tac.convert_external_docs(endpoint),
operation_id: None, // set in clone_operation below with operation_counter
Expand Down
Loading

0 comments on commit 698be88

Please sign in to comment.