We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4f0156 + 72a0c62 commit 8bd871eCopy full SHA for 8bd871e
server/types/matchers.go
@@ -8,7 +8,6 @@ import (
8
log "github.com/sirupsen/logrus"
9
"github.com/smartystreets/assertions"
10
"github.com/stretchr/objx"
11
- "gopkg.in/yaml.v3"
12
)
13
14
const (
@@ -300,12 +299,9 @@ func (bm *BodyMatcher) UnmarshalJSON(data []byte) error {
300
299
301
func (bm BodyMatcher) MarshalYAML() (interface{}, error) {
302
if bm.bodyString != nil {
303
- value, err := yaml.Marshal(bm.bodyString)
304
- return string(value), err
+ return bm.bodyString, nil
305
}
306
-
307
- value, err := yaml.Marshal(bm.bodyJson)
308
+ return bm.bodyJson, nil
309
310
311
func (bm *BodyMatcher) UnmarshalYAML(unmarshal func(interface{}) error) error {
0 commit comments