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 ecc1a05 commit 3f84ef0Copy full SHA for 3f84ef0
compiler-rs/clients_schema_to_openapi/src/main.rs
@@ -23,6 +23,7 @@ use clients_schema::Flavor;
23
use tracing::Level;
24
use tracing_subscriber::fmt::format::FmtSpan;
25
use tracing_subscriber::FmtSubscriber;
26
+use clients_schema_to_openapi::Configuration;
27
28
fn main() -> anyhow::Result<()> {
29
let cli = Cli::parse();
@@ -83,7 +84,12 @@ impl Cli {
83
84
Some(SchemaFlavor::Serverless) => Some(Flavor::Serverless),
85
};
86
- let openapi = clients_schema_to_openapi::convert_schema(model, flavor)?;
87
+ let config = Configuration {
88
+ flavor,
89
+ ..Default::default()
90
+ };
91
+
92
+ let openapi = clients_schema_to_openapi::convert_schema(model, config)?;
93
94
let output: Box<dyn std::io::Write> = {
95
if let Some(output) = self.output {
0 commit comments