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 03e01a1 commit 3e8a43bCopy full SHA for 3e8a43b
compiler-rs/clients_schema_to_rest_api_spec/src/lib.rs
@@ -260,7 +260,7 @@ fn is_literal(instance: &InstanceOf) -> Option<String> {
260
fn get_type_name(value_of: &ValueOf, types: &IndexMap<TypeName, TypeDefinition>) -> String {
261
match value_of {
262
ValueOf::ArrayOf(_) => "list".to_string(),
263
- ValueOf::UnionOf(union) => if is_list_enum(union) { "enum" } else { todo!() }.to_string(),
+ ValueOf::UnionOf(union) => if is_list_enum(union) { "enum" } else { tracing::warn!("{:?}", union); todo!() }.to_string(),
264
ValueOf::LiteralValue(_) => "string".to_string(),
265
ValueOf::InstanceOf(instance) => {
266
let type_name = &instance.typ;
0 commit comments