fix: the request method is incorrect via swagger creation (#342)
Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
This commit is contained in:
parent
b6b7483140
commit
642b23ab78
|
@ -173,9 +173,7 @@ const apiSpecKinds = [
|
|||
]
|
||||
|
||||
const handleAPISelect = (item: TestCase) => {
|
||||
if (testCaseForm.method === '') {
|
||||
testCaseForm.method = item.request.method
|
||||
}
|
||||
testCaseForm.method = item.request.method
|
||||
if (testCaseForm.name === '') {
|
||||
testCaseForm.name = item.name
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ func ToGRPCTestCase(testCase testing.TestCase) (result *TestCase) {
|
|||
req := &Request{
|
||||
Api: testCase.Request.API,
|
||||
Method: testCase.Request.Method,
|
||||
// Query: mapToPair(testCase.Request.Query),
|
||||
Query: mapInterToPair(testCase.Request.Query),
|
||||
Header: mapToPair(testCase.Request.Header),
|
||||
Form: mapToPair(testCase.Request.Form),
|
||||
Body: testCase.Request.Body.String(),
|
||||
|
|
Loading…
Reference in New Issue