Skip to content

Commit 12232b4

Browse files
authored
refactor: add decode hook function for anypb in structmap (#434)
- Eliminate the need for special handling of asset proto by introducing the decode hook function for anypb type. - Instantiate concrete type for the anypb field using the @type field in given map. This makes it possible into an empty asset proto. - Verify data type and presense of data field in given map while decoding into an asset proto. - Remove unused type structmap.AssetWrapper. Port the tests for it into structmap_test.go.
1 parent ebb0868 commit 12232b4

File tree

5 files changed

+356
-394
lines changed

5 files changed

+356
-394
lines changed

plugins/internal/tengoutil/structmap/asset_wrapper.go

Lines changed: 0 additions & 59 deletions
This file was deleted.

plugins/internal/tengoutil/structmap/asset_wrapper_test.go

Lines changed: 0 additions & 319 deletions
This file was deleted.

0 commit comments

Comments
 (0)