mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Fixed rendering bug with .Schema() being called again.
Should have known better, almost there with accuracy now. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -76,7 +76,7 @@ func (r *Response) Hash() [32]byte {
|
||||
f = append(f, r.Description.Value)
|
||||
}
|
||||
if !r.Schema.IsEmpty() {
|
||||
f = append(f, low.GenerateHashString(r.Schema.Value.Schema()))
|
||||
f = append(f, low.GenerateHashString(r.Schema.Value))
|
||||
}
|
||||
if !r.Examples.IsEmpty() {
|
||||
for k := range r.Examples.Value.Values {
|
||||
|
||||
@@ -160,6 +160,8 @@ func CompareResponse(l, r any) *ResponseChanges {
|
||||
|
||||
CheckProperties(props)
|
||||
rc.Changes = changes
|
||||
return rc
|
||||
|
||||
if rc.TotalChanges() <= 0 {
|
||||
return nil
|
||||
}
|
||||
return rc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user