Wiring up responses into what-changed feature

Building tests and hashing functions.
This commit is contained in:
Dave Shanley
2022-10-28 15:43:57 -04:00
parent 5bd0d8de50
commit b06ef4bcc9
8 changed files with 475 additions and 66 deletions

View File

@@ -65,6 +65,14 @@ func (r *ResponseChanges) TotalBreakingChanges() int {
return c
}
func CompareResponseV2(l, r *v2.Response) *ResponseChanges {
return CompareResponse(l, r)
}
func CompareResponseV3(l, r *v3.Response) *ResponseChanges {
return CompareResponse(l, r)
}
func CompareResponse(l, r any) *ResponseChanges {
var changes []*Change