Skip to content

Commit ac8882a

Browse files
committed
Switch to always return Vec<serde_json::Value>
1 parent 2dcdaa3 commit ac8882a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/analyzer.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,7 @@ fn array_recurse_for_type(
427427
match items {
428428
JSONSchemaPropsOrArray::Schema(s) => {
429429
if s.type_.is_none() && s.x_kubernetes_preserve_unknown_fields == Some(true) {
430-
if s.x_kubernetes_preserve_unknown_fields == Some(true) {
431-
return Ok(("Vec<serde_json::Value>".into(), level));
432-
}
433-
let map_type = cfg.map.name();
434-
return Ok((format!("Vec<{}<String, serde_json::Value>>", map_type), level));
430+
return Ok(("Vec<serde_json::Value>".to_string(), level));
435431
}
436432
let inner_array_type = s.type_.clone().unwrap_or_default();
437433
return match inner_array_type.as_ref() {

0 commit comments

Comments
 (0)