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 2662e4d commit 76ab095Copy full SHA for 76ab095
compiler-rs/clients_schema_to_openapi/src/main.rs
@@ -39,9 +39,12 @@ fn main() -> anyhow::Result<()> {
39
let redirect_path = cli.redirect_path(&cli.output);
40
let openapi = clients_schema_to_openapi::convert_schema(schema, cli.into(), product_meta)?;
41
serde_json::to_writer_pretty(File::create(&output)?, &openapi.openapi)?;
42
+ serde_json::to_writer_pretty(File::create(&output)?, &openapi.openapi)?;
43
+
44
if let Some(redirects) = openapi.redirects {
45
let path = redirect_path.unwrap();
- }
46
std::fs::write(path, &redirects)?;
47
+ }
48
49
Ok(())
50
}
0 commit comments