Skip to content

Commit

Permalink
workaround for duplicate struct emits
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Apr 18, 2023
1 parent 785152d commit 0325cce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openapi/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,11 @@ fn gen_schema_ref(
state.use_resources.insert(type_name.clone());
shared_objects.insert(FileGenerator::new(schema_name.to_string()));
} else if !state.generated_schemas.contains_key(schema_name) {
state.generated_schemas.insert(schema_name.into(), false);
// for some reason, this field causes clashes, so just skip it
// until the new codegen is ready
if schema_name != "invoice_setting_subscription_schedule_setting" {
state.generated_schemas.insert(schema_name.into(), false);
}
}
}
type_name
Expand Down

0 comments on commit 0325cce

Please sign in to comment.