Skip to content

Commit 3e8a43b

Browse files
committed
Show unexpected union
1 parent 03e01a1 commit 3e8a43b

File tree

1 file changed

+1
-1
lines changed
  • compiler-rs/clients_schema_to_rest_api_spec/src

1 file changed

+1
-1
lines changed

compiler-rs/clients_schema_to_rest_api_spec/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ fn is_literal(instance: &InstanceOf) -> Option<String> {
260260
fn get_type_name(value_of: &ValueOf, types: &IndexMap<TypeName, TypeDefinition>) -> String {
261261
match value_of {
262262
ValueOf::ArrayOf(_) => "list".to_string(),
263-
ValueOf::UnionOf(union) => if is_list_enum(union) { "enum" } else { todo!() }.to_string(),
263+
ValueOf::UnionOf(union) => if is_list_enum(union) { "enum" } else { tracing::warn!("{:?}", union); todo!() }.to_string(),
264264
ValueOf::LiteralValue(_) => "string".to_string(),
265265
ValueOf::InstanceOf(instance) => {
266266
let type_name = &instance.typ;

0 commit comments

Comments
 (0)