mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Building out schema comparison mechanism
Which has led to a new wider hashing capability for the low level API. hashing makes it very easy to determine changes quickly, without having to run comparisons to discover changes, could really speed things up moving forward.
This commit is contained in:
@@ -544,3 +544,8 @@ func ExtractExtensions(root *yaml.Node) map[KeyReference[string]]ValueReference[
|
||||
}
|
||||
return extensionMap
|
||||
}
|
||||
|
||||
// AreEqual returns true if two Hashable objects are equal or not.
|
||||
func AreEqual(l, r Hashable) bool {
|
||||
return l.Hash() == r.Hash()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user