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
In our Golang api application, we use embedded struct. However, when we use pact-go it does not seem to support embedded structs. Is there a plan to support this in the near future?
srcType.Field.Anonymous allow differentiation between embedded and normal structs and could be used in pact matcher.go in func match(srcType reflect.Type, params params). JSON Marshal could serve as inspiration, see here: https://play.golang.org/p/PzncHdyUUL5
The text was updated successfully, but these errors were encountered:
TorbenCK
changed the title
Problem with embedded structs
Problem with embedded structs during pact testing
Jul 11, 2022
In our Golang api application, we use embedded struct. However, when we use pact-go it does not seem to support embedded structs. Is there a plan to support this in the near future?
srcType.Field.Anonymous allow differentiation between embedded and normal structs and could be used in pact matcher.go in func match(srcType reflect.Type, params params). JSON Marshal could serve as inspiration, see here: https://play.golang.org/p/PzncHdyUUL5
The text was updated successfully, but these errors were encountered: