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

GannettDigital / jstransform / 216
34%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2019 09:03PM UTC
Jobs 1
Files 10
Run time 2s
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
216

push

travis-ci

web-flow
Allow field renames (#49)

* Allow fields to be renamed
Valid JSON property names are not always valid Go identifiers. A common example is a property name that starts with a number. This cannot be turned into a field in the Go struct generated by this tool.
With this change you can supply key value pairs to rename JSON property names to something that is a valid Go identifier. For example if you had a property name in your JSONschema file called "16_9" you could call go generate like this:
```
//go:generate jstransform -renameFields 16_9=SixteenByNine /path/to/the/schema.json
```

72 of 72 new or added lines in 1 file covered. (100.0%)

1118 of 1401 relevant lines covered (79.8%)

57.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 216.1 (GO111MODULE="on") 15 Apr 2019 09:03PM UTC 0
79.8
Travis Job 216.1
Source Files on build 216
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #216
  • a8f1e2f1 on github
  • Prev Build on master (#205)
  • Next Build on master (#251)
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