Skip to content

Commit 15d33b0

Browse files
authored
[8.18] Markdown formatting for required authorization (#4513) (#4577)
* Markdown formatting for required authorization (#4513) (cherry picked from commit 3df6575) * More markdown formatting for required authorization (#4516)
1 parent b3e2da8 commit 15d33b0

File tree

4 files changed

+907
-905
lines changed

4 files changed

+907
-905
lines changed

compiler-rs/clients_schema_to_openapi/src/paths.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,18 +474,20 @@ fn split_summary_desc(desc: &str) -> SplitDesc{
474474

475475
fn add_privileges(privileges: &Option<Privileges>) -> Option<String>{
476476
if let Some(privs) = privileges {
477-
let mut result = "\n ##Required authorization\n".to_string();
477+
let mut result = "\n\n## Required authorization\n\n".to_string();
478478
if !privs.index.is_empty() {
479479
result += "* Index privileges: ";
480480
result += &privs.index.iter()
481481
.map(|a| format!("`{a}`"))
482482
.join(",");
483+
result += "\n";
483484
}
484485
if !privs.cluster.is_empty() {
485486
result += "* Cluster privileges: ";
486487
result += &privs.cluster.iter()
487488
.map(|a| format!("`{a}`"))
488489
.join(",");
490+
result += "\n";
489491
}
490492
return Some(result)
491493
}
Binary file not shown.

0 commit comments

Comments
 (0)