Skip to content

Commit bbe8ef7

Browse files
committed
Slight formatting tweak
1 parent 8e66275 commit bbe8ef7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compatability.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func checkBody(downstreamBody string, expectedBody string) (errors []string) {
137137
}
138138

139139
for k, v := range errMessages {
140-
errors = append(errors, fmt.Sprintf("JSON err on field %s : %s", k, v))
140+
errors = append(errors, fmt.Sprintf("JSON err on field '%s' : %s", k, v))
141141
}
142142

143143
return

examples/incompatible.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
method: GET
66
response:
77
code: 200
8-
body: '{"proclomation": "hello, world"}' # this json is incompatible with "example.yaml"
8+
body: '{"proclomation": "hello, world", "message": 2.0}' # this json is incompatible with "example.yaml"
99
headers:
1010
content-type: text/json
1111

0 commit comments

Comments
 (0)