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

TykTechnologies / tyk / 3703
53%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 13 Dec 2017 06:34AM UTC
Jobs 1
Files 85
Run time 3s
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

pending completion
3703

push

travis-ci

asoorm
Adds JSON Schema validation to the gateway

Fixes #1163
Based on https://github.com/TykTechnologies/tyk/pull/1180

Adds a new JSON Validation middleware that can be configured as follows:

```
"version_data": {
  "not_versioned": true,
  "versions": {
    "default": {
      "name": "default",
      "use_extended_paths": true,
      "extended_paths": {
        "validate_json": [{
          "method": "POST",
          "path": "me",
          "validate_with": "BASE64 ENCODED SCHEMA"
        }]
      }
    }
  }
},
```

The schema must be a draft v4 JSON Schema spec. The gateway will attempt
to validate the inbound request against it, if fields are failing the
validation process, a detailed error response is provided for the user
to fix their payload.

This will require a new Dashboard UI to handle input.

6739 of 13448 relevant lines covered (50.11%)

0.55 hits per line

Jobs
ID Job ID Ran Files Coverage
2 3703.2 (LATEST_GO=true) 13 Dec 2017 06:34AM UTC 0
50.11
Travis Job 3703.2
Source Files on build 3703
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3703
  • 403fcc31 on github
  • Prev Build on json-validation-ahm (#3701)
  • Next Build on json-validation-ahm (#3705)
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