mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user