Skip to content

Commit 3f84ef0

Browse files
committed
Fix main
1 parent ecc1a05 commit 3f84ef0

File tree

1 file changed

+7
-1
lines changed
  • compiler-rs/clients_schema_to_openapi/src

1 file changed

+7
-1
lines changed

compiler-rs/clients_schema_to_openapi/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use clients_schema::Flavor;
2323
use tracing::Level;
2424
use tracing_subscriber::fmt::format::FmtSpan;
2525
use tracing_subscriber::FmtSubscriber;
26+
use clients_schema_to_openapi::Configuration;
2627

2728
fn main() -> anyhow::Result<()> {
2829
let cli = Cli::parse();
@@ -83,7 +84,12 @@ impl Cli {
8384
Some(SchemaFlavor::Serverless) => Some(Flavor::Serverless),
8485
};
8586

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)?;
8793

8894
let output: Box<dyn std::io::Write> = {
8995
if let Some(output) = self.output {

0 commit comments

Comments
 (0)