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:
@@ -22,6 +22,12 @@ type HasValueNode[T any] interface {
|
||||
*T
|
||||
}
|
||||
|
||||
// Hashable defines any struct that implements a Hash function that returns a 256SHA hash of the state of the
|
||||
// representative object. Great for equality checking!
|
||||
type Hashable interface {
|
||||
Hash() [32]byte
|
||||
}
|
||||
|
||||
// HasExtensions is implemented by any object that exposes extensions
|
||||
type HasExtensions[T any] interface {
|
||||
GetExtensions() map[KeyReference[string]]ValueReference[any]
|
||||
|
||||
Reference in New Issue
Block a user