This is a maintenance release. The highlight of this change is to make the card converter more maintainable for both the core and future contributors.
We are now just simply decoding the templated card to Office365ConnectorCard
struct. All struct fields are referenced from Teams Card Fields.
Other Changes
- Move the sections validation and splitting function to the service layer.
- Add warning logs if potentialActions are more than 5.
- Refactor tests and use
go-cmp/cmp.Diff
for comparison. - Add more golangci-lint rules and fix the new linting issues.