databricks-cli/libs/dyn/convert
Pieter Noordhuis ea8daf1f97
Avoid infinite recursion when normalizing a recursive type (#1213)
## Changes

This is a follow-up to #1211 prompted by the addition of a recursive
type in the Go SDK v0.31.0 (`jobs.ForEachTask`).

When populating missing fields with their zero values we must not
inadvertently recurse into a recursive type.

## Tests

New unit test fails with a stack overflow if the fix if the check is
disabled.
2024-02-16 12:56:02 +00:00
..
end_to_end_test.go Fix dynamic representation of zero values in maps and slices (#1154) 2024-01-31 14:25:13 +00:00
error.go Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +00:00
from_typed.go Retain partially valid structs in `convert.Normalize` (#1203) 2024-02-13 14:12:19 +00:00
from_typed_test.go Empty struct should yield empty map in `convert.FromTyped` (#1177) 2024-02-07 09:25:07 +00:00
normalize.go Avoid infinite recursion when normalizing a recursive type (#1213) 2024-02-16 12:56:02 +00:00
normalize_test.go Avoid infinite recursion when normalizing a recursive type (#1213) 2024-02-16 12:56:02 +00:00
struct_info.go Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +00:00
struct_info_test.go Rename libs/config -> libs/dyn (#1086) 2023-12-22 13:20:45 +00:00
to_typed.go Zero destination struct in `convert.ToTyped` (#1178) 2024-02-07 09:25:53 +00:00
to_typed_test.go Zero destination struct in `convert.ToTyped` (#1178) 2024-02-07 09:25:53 +00:00