New
- Add ability to set id_attribute per-resource and per-datasource as an override to provider config. Thanks @rberlind for the idea!
- Make id_attribute aware of how to find a value multiple levels deep in the results rather than as a top-level value only. Example: with the data
{ "attrs": { "id": 1234 }, "config": { "foo": "abc", "bar": "xyz"} }
, you can now get the id of1234
by settingid_attribute
toattrs/id
. Thanks @rberlind for the idea! - Added some handy internal functions to make working with complex data types safer and easier.
Fixes
- Do not fail with mysterious Go panics if type assertions fail during datasource lookup