Skip to content

Commit

Permalink
Make untyped fields use serde_json::Value directly
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Grigorev <[email protected]>
  • Loading branch information
Danil-Grigorev committed Apr 24, 2024
1 parent 920604d commit d1d35a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ fn extract_container(
if value.x_kubernetes_int_or_string.is_some() {
"IntOrString".into()
} else if value.x_kubernetes_preserve_unknown_fields == Some(true) {
format!("{map_type}<String, serde_json::Value>")
"serde_json::Value".into()
} else if cfg.relaxed {
debug!("found empty object at {} key: {}", stack, key);
format!("{map_type}<String, serde_json::Value>")
Expand Down

0 comments on commit d1d35a0

Please sign in to comment.