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

frictionlessdata / goodtables-py / 660
94%
master: 81%

Build:
Build:
LAST BUILD BRANCH: frictionless
DEFAULT BRANCH: master
Ran 23 Feb 2018 07:44PM UTC
Jobs 5
Files 41
Run time 41s
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
660

push

travis-ci

vitorbaptista
[#251] Allow non-required primary keys

If a field is a `primaryKey`, we validate that it exists, the same way as if it
had `{'constraints': {'required': True}}`. However, there can be some cases
where a `primaryKey` field can be null. Pretty uncommon, but messy data...

This commit allows removing the check by explicitly setting the `required` to
False, so a field like:

```
"fields": [
  {
    "name": "id",
    "constraints": {
      "required": False
    }
  }
],
"primaryKey": "id"
```

Wouldn't be required. In other words, the `required` constraint overloads the
`primaryKey` constraint.

Fixes #251

1144 of 1223 relevant lines covered (93.54%)

3.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 660.1 23 Feb 2018 07:45PM UTC 0
93.54
Travis Job 660.1
2 660.2 23 Feb 2018 07:45PM UTC 0
93.54
Travis Job 660.2
3 660.3 23 Feb 2018 07:45PM UTC 0
93.54
Travis Job 660.3
4 660.4 23 Feb 2018 07:44PM UTC 0
93.46
Travis Job 660.4
5 660.5 (TOXENV=lint) 23 Feb 2018 07:44PM UTC 0
Travis Job 660.5
Source Files on build 660
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #660
  • 33f4e496 on github
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

© 2025 Coveralls, Inc