mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
Working through what changed rabbit hole
Parameter dependencies mean we're back in the ball of yarn stage. Coverage is going to drop for a bit, until all the new hashing and interfaces are in place.
This commit is contained in:
@@ -43,8 +43,12 @@ func (x *XML) Hash() [32]byte {
|
||||
x.Name.Value,
|
||||
x.Namespace.Value,
|
||||
x.Prefix.Value,
|
||||
fmt.Sprintf("%v", x.Attribute.Value),
|
||||
fmt.Sprintf("%v", x.Wrapped.Value),
|
||||
fmt.Sprint(x.Attribute.Value),
|
||||
fmt.Sprint(x.Wrapped.Value),
|
||||
}
|
||||
// add extensions to hash
|
||||
for k := range x.Extensions {
|
||||
d = append(d, fmt.Sprintf("%v-%x", k.Value, x.Extensions[k].Value))
|
||||
}
|
||||
return sha256.Sum256([]byte(strings.Join(d, "|")))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user