• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 4936 / 2

Build:
DEFAULT BRANCH: master
Ran 30 May 2018 04:25AM UTC
Files 95
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 May 2018 04:18AM UTC coverage: 57.288%. Remained the same
LATEST_GO=true

push

travis-ci

buger
bug: unable to transform json array response body

Create a json response body transform. Use it to filter an array.

Because the gateway unmarshals `bodyData` into `map[string]interface{}`,
this means that it is unable to unmarshal an array.

```
[May 25 19:49:13] ERROR outbound-transform: Error unmarshalling JSON:
json: cannot unmarshal array into Go value of type map[string]interface
{} api_id=62498653ade2405b64537d94d2666dc0 path=example-array
server_name=https://my-upstream.com/
```

This fix resolves the response body transform by unmarshaling into an
`interface{}`.

We need to find a suitable solution for request body transforms. This is
currently not possible due to:

```
if tmeta.TemplateData.EnableSession {
	session := ctxGetSession(r)
	bodyData["_tyk_meta"] = session.MetaData
}

if contextVars {
	bodyData["_tyk_context"] = ctxGetData(r)
}
```

8670 of 15134 relevant lines covered (57.29%)

0.63 hits per line

Source Files on job 4936.2 (LATEST_GO=true)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 4500
  • Travis Job 4936.2
  • 1c3a4007 on github
  • Prev Job for LATEST_GO=true on master (#4927.2)
  • Next Job for LATEST_GO=true on master (#4937.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc