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

noirbizarre / flask-restplus / 360 / 6
38%
master: 38%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2016 11:34AM UTC
Files 19
Run time 1s
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

03 Jun 2016 11:30AM UTC coverage: 96.319% (+0.002%) from 96.317%
360.6

Pull #178

travis-ci

tzabal
Add semantic validation for an input payload

The JSON Schema specification defines the optionally-supported 'format'
keyword for semantic validation of string values. [1]

For example, given the following JSON schema:
{
  "type": "object",
  "properties": {
    "name": {"type": "string", "format": "ipv4"}
  }
}
A JSON schema validator that does not conform to the 'format' keyword would
render the JSON object {"ip": "awesome-ip"} valid, whereas one that
conforms to it, would render it invalid.

Currently Flask-RESTPlus does not support the ability to add a semantic
validator. With this patch, the Api constructor may receive a
`jsonschema.FormatChecker` object as argument, that will be passed from
the `resource.Resource.validate_payload` method to the
`model.Model.validate` method, and will be used in the invocation of the
Draft4Validator that actually performs the validation.

[1] http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-7
Pull Request #178: Add semantic validation for input payload

2067 of 2146 relevant lines covered (96.32%)

0.96 hits per line

Source Files on job 360.6
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 360
  • Travis Job 360.6
  • 7ad2fad0 on github
  • Prev Job for on master (#342.6)
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