51 }
52 } else if typ.Kind() == reflect.Slice {
53 responseSchema, err := b.schema.GenerateFilteredSchemaFor(ctx, swagger, typ, filterObject)
54 if err != nil { 55 return err 56 } 57 if responseSchema.Value.Format == "binary" {
58 contentType = "application/octet-stream"
59 }
40
41 if typ.Kind() == reflect.Struct {
42 responseSchema, err := b.schema.GenerateFilteredSchemaFor(ctx, swagger, typ, filterObject)
43 if err != nil { 44 return err 45 } 46
47 resp.Content = openapi3.Content{
48 contentType: &openapi3.MediaType{
95 if p, ok := ret[0].Interface().(*openapi3.Parameter); ok && (p != nil) {
96 if p.Description != "" {
97 resp.Description = &p.Description
98 } 99 }
100 }
101
34 }
35
36 err := fillResponseFromTags(requestObjectType, resp, responseField)
37 if err != nil { 38 return err 39 } 40
41 if typ.Kind() == reflect.Struct {
42 responseSchema, err := b.schema.GenerateFilteredSchemaFor(ctx, swagger, typ, filterObject)
93 })
94
95 if p, ok := ret[0].Interface().(*openapi3.Parameter); ok && (p != nil) {
96 if p.Description != "" { 97 resp.Description = &p.Description 98 }
99 }
100 }
A source line is considered covered when at least one instruction that is assigned to this line has been executed by a test case. These lines were not executed during any of the test cases.