Skip to content

Commit 4c35ebc

Browse files
authored
[9.0] Markdown formatting for required authorization (#4513) (#4574)
* Markdown formatting for required authorization (#4513) (cherry picked from commit 3df6575) * More markdown formatting for required authorization (#4516)
1 parent b704ab0 commit 4c35ebc

File tree

5 files changed

+918
-916
lines changed

5 files changed

+918
-916
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
@@ -516,18 +516,20 @@ fn split_summary_desc(desc: &str) -> SplitDesc{
516516

517517
fn add_privileges(privileges: &Option<Privileges>) -> Option<String>{
518518
if let Some(privs) = privileges {
519-
let mut result = "\n ##Required authorization\n".to_string();
519+
let mut result = "\n\n## Required authorization\n\n".to_string();
520520
if !privs.index.is_empty() {
521521
result += "* Index privileges: ";
522522
result += &privs.index.iter()
523523
.map(|a| format!("`{a}`"))
524524
.join(",");
525+
result += "\n";
525526
}
526527
if !privs.cluster.is_empty() {
527528
result += "* Cluster privileges: ";
528529
result += &privs.cluster.iter()
529530
.map(|a| format!("`{a}`"))
530531
.join(",");
532+
result += "\n";
531533
}
532534
return Some(result)
533535
}

compiler-rs/compiler-wasm-lib/pkg/compiler_wasm_lib.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

0 commit comments

Comments
 (0)