Skip to content

Commit 2327392

Browse files
authored
More markdown formatting for required authorization (#4516)
1 parent 291ffd3 commit 2327392

File tree

4 files changed

+919
-917
lines changed

4 files changed

+919
-917
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
@@ -502,18 +502,20 @@ fn split_summary_desc(desc: &str) -> SplitDesc{
502502

503503
fn add_privileges(privileges: &Option<Privileges>) -> Option<String>{
504504
if let Some(privs) = privileges {
505-
let mut result = "\n\n ## Required authorization\n".to_string();
505+
let mut result = "\n\n## Required authorization\n\n".to_string();
506506
if !privs.index.is_empty() {
507507
result += "* Index privileges: ";
508508
result += &privs.index.iter()
509509
.map(|a| format!("`{a}`"))
510510
.join(",");
511+
result += "\n";
511512
}
512513
if !privs.cluster.is_empty() {
513514
result += "* Cluster privileges: ";
514515
result += &privs.cluster.iter()
515516
.map(|a| format!("`{a}`"))
516517
.join(",");
518+
result += "\n";
517519
}
518520
return Some(result)
519521
}
Binary file not shown.

0 commit comments

Comments
 (0)