#2 - add swaggerset

This commit is contained in:
Gorbunov Kirill Andreevich
2024-11-30 19:30:46 +03:00
parent fb1ae47d6f
commit e207117ba4
4 changed files with 49 additions and 64 deletions

View File

@@ -21,7 +21,7 @@ func TestSwaggerSet_1(t *testing.T) {
"localhost:8080",
"service",
"/domain-service/v1/push_mail/enabled",
"POST")
[]string{"POST", "GET"})
assert.Nil(t, err)
assert.NotNil(t, msgs.Msgs)
for _, msg := range msgs.Msgs {
@@ -31,6 +31,7 @@ func TestSwaggerSet_1(t *testing.T) {
assert.Nil(t, err)
rsp, err := json.Marshal(msg.Response)
assert.Nil(t, err)
fmt.Printf("type: %s, reqParam: %s, reqBody: %s, rsp: %s \n", msg.Type, reqParam, reqBody, rsp)
fmt.Printf("JSON: type: %s, reqParam: %s, reqBody: %s, rsp: %s \n", msg.Type, reqParam, reqBody, rsp)
fmt.Printf("Struct: type: %s, reqParam: %+v, reqBody: %+v, rsp: %+v \n", msg.Type, msg.RequestParam, msg.RequestBody, msg.Response)
}
}