v2 and v3 response model now in place.

Closing in around the branch soon, all the leaves and twigs are just about in place.
This commit is contained in:
Dave Shanley
2022-10-27 10:22:35 -04:00
parent 19d5d62413
commit ff07c764ca
6 changed files with 572 additions and 5 deletions

View File

@@ -146,13 +146,13 @@ func (r *Response) Hash() [32]byte {
f = append(f, r.Description.Value)
}
for k := range r.Headers.Value {
f = append(f, low.GenerateHashString(r.Headers.Value[k]))
f = append(f, low.GenerateHashString(r.Headers.Value[k].Value))
}
for k := range r.Content.Value {
f = append(f, low.GenerateHashString(r.Content.Value[k]))
f = append(f, low.GenerateHashString(r.Content.Value[k].Value))
}
for k := range r.Links.Value {
f = append(f, low.GenerateHashString(r.Links.Value[k]))
f = append(f, low.GenerateHashString(r.Links.Value[k].Value))
}
for k := range r.Extensions {
f = append(f, fmt.Sprintf("%s-%x", k.Value,