Skip to content

Commit

Permalink
fix: compose response ignorecase
Browse files Browse the repository at this point in the history
  • Loading branch information
alovn committed May 19, 2022
1 parent 5898d63 commit 7fee8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (operation *Operation) parseCombinedObject(refType string, astFile *ast.Fil
// fmt.Println("keyVal", keyVal[0], keyVal[1]) //data TestData
// if is number or string wrap, replace it
if isReplaceValue(keyVal[1]) { //replace int,string, examples code or msg
if p, ok := schemaA.Properties[keyVal[0]]; ok {
if p, ok := schemaA.Properties[strings.ToLower(keyVal[0])]; ok {
p.example = keyVal[1] //replace response code, msg
}
} else {
Expand Down

0 comments on commit 7fee8d4

Please sign in to comment.