mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +00:00
Added component checking for swagger models.
components support now caters to v2, v3 coming shortly - but now it's time for a walk. this shit is exhausting my brain.
This commit is contained in:
@@ -114,3 +114,12 @@ func (sp *SchemaProxy) GetSchemaReference() string {
|
||||
func (sp *SchemaProxy) GetValueNode() *yaml.Node {
|
||||
return sp.vn
|
||||
}
|
||||
|
||||
// Hash will return a consistent SHA256 Hash of the SchemaProxy object (it will resolve it)
|
||||
func (sp *SchemaProxy) Hash() [32]byte {
|
||||
if sp.rendered != nil {
|
||||
return sp.rendered.Hash()
|
||||
} else {
|
||||
return sp.Schema().Hash()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user