We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e6fe8 commit a3b903cCopy full SHA for a3b903c
compiler-rs/clients_schema_to_openapi/src/paths.rs
@@ -196,7 +196,11 @@ pub fn add_endpoint(
196
197
// Create the operation, it will be repeated if we have several methods
198
let operation = openapiv3::Operation {
199
- tags: if endpoint.doc_tag.is_some() {vec![endpoint.doc_tag.clone().expect("TODO: panic message")]} else {vec![namespace.to_string()]},
+ tags: if let Some(doc_tag) = &endpoint.doc_tag {
200
+ vec![doc_tag.clone()]
201
+ } else {
202
+ vec![namespace.to_string()]
203
+ },
204
summary: sum_desc.summary,
205
description: sum_desc.description,
206
// external_docs: tac.convert_external_docs(endpoint),
0 commit comments