mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +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)
|
f = append(f, r.Description.Value)
|
||||||
}
|
}
|
||||||
if !r.Schema.IsEmpty() {
|
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() {
|
if !r.Examples.IsEmpty() {
|
||||||
for k := range r.Examples.Value.Values {
|
for k := range r.Examples.Value.Values {
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ func CompareResponse(l, r any) *ResponseChanges {
|
|||||||
|
|
||||||
CheckProperties(props)
|
CheckProperties(props)
|
||||||
rc.Changes = changes
|
rc.Changes = changes
|
||||||
|
if rc.TotalChanges() <= 0 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user