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

GannettDigital / jstransform
80%
master: 34%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.8.6
DEFAULT BRANCH: master
Repo Added 05 Jun 2018 05:41PM UTC
Files 109
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

LAST BUILD ON BRANCH v0.6.2
branch: v0.6.2
CHANGE BRANCH
x
Reset
  • v0.6.2
  • 0.12.0
  • 0.2.5
  • 0.2.6
  • 0.3.0
  • 0.4.0
  • 0.4.1
  • 0.4.2
  • 0.5.0
  • 0.5.1
  • 0.5.10
  • 0.5.2
  • 0.5.3
  • 0.5.7
  • 0.5.8
  • 0.5.9
  • APIS-0000
  • APIS-2067
  • APIS-2165
  • APIS-2601
  • APIS-2601-xmlpkg
  • APIS-2664
  • APIS-2760
  • APIS-2816
  • APIS-2819
  • APIS-2900
  • APIS-2916
  • APIS-3045
  • APIS-3051
  • APIS-5299
  • APIS-5299_renamefields
  • APIS-5668
  • APIS-5905
  • APIS-6105
  • APIS-6106
  • APIS-7111
  • APIS-7188
  • APIS-7217
  • APIS-7300
  • APIS-7300-ref
  • APIS-7516
  • APIS-7851
  • APIS-7864
  • APIS-8302
  • APIS-avro3
  • PENG-1842
  • PENG-2950
  • PENG-2950-2
  • PENG-3778
  • PENG-4356
  • PENG-4819
  • PENG-6044
  • PENG-7134_date_error
  • PENG-7770
  • PENG-7977
  • PENG-8142
  • SDGT-192
  • SDGT-2085
  • SDGT-2086
  • SDGT-352
  • SDGT-7548
  • SDGT-858_novalidation
  • SDGT-930
  • add-error-to-avro-writer
  • add_description
  • allow_field_renames
  • apis-7647
  • apis-7647-2
  • arrayBugFix
  • avro-delete
  • avro-nested-structs
  • avro2
  • avro4
  • bumpbot-20230202
  • bumpbot-20231003
  • bumpbot-20250103
  • deep-ref
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.16
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • deref-saves-transform
  • emptyObject
  • enhance-date-time-strings
  • fix-date-time-arrays
  • fix-msgp-time
  • fix-nested-time-import
  • fix-windows-refs
  • fix_coverage
  • githubactions
  • go-mod
  • handle-errors
  • map-fields
  • map-transform
  • master
  • nested-array-error
  • nil-transform
  • not-concurrent
  • perf2
  • perf4
  • ref-to-array
  • ref-transform
  • ref_targets
  • refs
  • refs/tags/v1.0.3
  • refs/tags/v1.0.5
  • refs/tags/v1.0.6
  • refs/tags/v1.1.0
  • refs/tags/v1.1.1
  • refs/tags/v1.1.2
  • refs/tags/v1.1.3
  • refs/tags/v1.1.4
  • refs/tags/v1.1.5
  • refs/tags/v1.1.6
  • refs/tags/v1.1.7
  • refs/tags/v1.1.8
  • refs/tags/v1.1.9
  • refs/tags/v1.2.0
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1
  • refs/tags/v1.4.0
  • refs/tags/v1.4.1
  • refs/tags/v1.5.0
  • refs/tags/v1.6.0
  • refs/tags/v1.6.1
  • refs/tags/v1.6.2
  • refs/tags/v1.6.3
  • refs/tags/v1.7.0
  • refs/tags/v1.8.0
  • refs/tags/v1.8.1
  • refs/tags/v1.8.2
  • refs/tags/v1.8.3
  • refs/tags/v1.8.4
  • refs/tags/v1.8.5
  • refs/tags/v1.8.6
  • removeLogging
  • schema-from-bytes
  • sdgt-0000-add-firstOnly-operation
  • singleItemInArray
  • struct-gen-allof-bug
  • url-fix
  • v0.10.0
  • v0.10.1
  • v0.10.2
  • v0.11.0
  • v0.11.1
  • v0.12.0
  • v0.12.1
  • v0.12.2
  • v0.12.3
  • v0.12.4
  • v0.5.11
  • v0.5.12
  • v0.5.13
  • v0.5.4
  • v0.5.5
  • v0.5.6
  • v0.5.7
  • v0.6.0
  • v0.6.1
  • v0.7.0
  • v0.7.1
  • v0.7.2
  • v0.7.3
  • v0.7.4
  • v0.7.5
  • v0.7.6
  • v0.8.0
  • v0.8.1
  • v0.9.0
  • vet-errors

pending completion
217

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
```

1118 of 1401 relevant lines covered (79.8%)

57.2 hits per line

Relevant lines Covered
Build:
Build:
1401 RELEVANT LINES 1118 COVERED LINES
57.2 HITS PER LINE
Source Files on v0.6.2
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
217 v0.6.2 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... push 15 Apr 2019 09:05PM UTC web-flow travis-ci pending completion  
See All Builds (760)
  • Repo 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

© 2026 Coveralls, Inc