mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Fix compare different node tag
This commit is contained in:
committed by
Dave Shanley
parent
fc7da1d38d
commit
d6031b5440
@@ -72,7 +72,7 @@ func CompareExamples(l, r *base.Example) *ExampleChanges {
|
||||
z := 0
|
||||
for k := range l.Value.ValueNode.Content {
|
||||
if k%2 == 0 {
|
||||
lKeys[z] = fmt.Sprintf("%v-%v", l.Value.ValueNode.Content[k].Value, l.Value.ValueNode.Content[k+1].Value)
|
||||
lKeys[z] = fmt.Sprintf("%v-%v-%v", l.Value.ValueNode.Content[k].Value, l.Value.ValueNode.Content[k+1].Tag, l.Value.ValueNode.Content[k+1].Value)
|
||||
z++
|
||||
} else {
|
||||
continue
|
||||
@@ -81,7 +81,7 @@ func CompareExamples(l, r *base.Example) *ExampleChanges {
|
||||
z = 0
|
||||
for k := range r.Value.ValueNode.Content {
|
||||
if k%2 == 0 {
|
||||
rKeys[z] = fmt.Sprintf("%v-%v", r.Value.ValueNode.Content[k].Value, r.Value.ValueNode.Content[k+1].Value)
|
||||
rKeys[z] = fmt.Sprintf("%v-%v-%v", r.Value.ValueNode.Content[k].Value, r.Value.ValueNode.Content[k+1].Tag, r.Value.ValueNode.Content[k+1].Value)
|
||||
z++
|
||||
} else {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user