Skip to content

Commit 7fee8d4

Browse files
committed
fix: compose response ignorecase
1 parent 5898d63 commit 7fee8d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (operation *Operation) parseCombinedObject(refType string, astFile *ast.Fil
269269
// fmt.Println("keyVal", keyVal[0], keyVal[1]) //data TestData
270270
// if is number or string wrap, replace it
271271
if isReplaceValue(keyVal[1]) { //replace int,string, examples code or msg
272-
if p, ok := schemaA.Properties[keyVal[0]]; ok {
272+
if p, ok := schemaA.Properties[strings.ToLower(keyVal[0])]; ok {
273273
p.example = keyVal[1] //replace response code, msg
274274
}
275275
} else {

0 commit comments

Comments
 (0)