You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Changes
- In terranova/tnresources, copy structs field-by-field instead of with
copyViaJSON helper.
- Enable exhaustruct linter on tnresources to ensure that all fields are
listed.
## Why
- With this approach we need to name every field, highlighting unused
ones.
- In case SDK adds new fields to request types, we would be alerted and
would need to add them manually.
- We don't rely on json annotation here, might be useful in the future
if SDK removes that.
Note, we still don't have a check that we use every field _from_ config.
Probably need a custom linter for that.
## Tests
Existing tests.
Manually commented out fields to ensure that linter catches that.
0 commit comments