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

peczenyj / GDPR-IAB-TCFv2
95%
main: 96%

Build:
Build:
LAST BUILD BRANCH: devel
DEFAULT BRANCH: main
Repo Added 06 Dec 2023 12:24PM UTC
Files 18
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 chore/remove-json-array-flag
branch: chore/remove-json-array-flag
CHANGE BRANCH
x
Reset
  • chore/remove-json-array-flag
  • add-range-section-cache
  • add-support-to-publisher-tc
  • chore/adopt-mojolicious-perltidyrc
  • chore/cmp-validator-version-coherence
  • chore/compress-test-corpus
  • chore/contributor-quality-of-life
  • chore/declare-min-perl-5.8.9
  • chore/dockerfile-perl-5.42-recommends
  • chore/maintenance-mode-handover
  • chore/normalize-pod-abstracts
  • chore/pod-and-message-cleanup
  • chore/structural-json-asserts
  • devel
  • docs/registry-freshness-roadmap
  • docs/slsa-level-2
  • docs/track-phase-5-cmp-validator
  • feat/cli-bundling
  • feat/cli-cmp-validator-integration
  • feat/cli-color-support
  • feat/cli-dump
  • feat/cli-short-help-and-unknown-subcommand
  • feat/cli-version
  • feat/cmp-validator-http-options
  • feat/docker-distribution
  • feat/docker-latest-tag
  • feat/golden-corpus-validator-scenarios
  • feat/is-v23-deadline-investigation
  • feat/parser-split-and-shortcut
  • feat/perf-optimizations
  • feat/perl-5.10
  • feat/perl-5.12
  • feat/phase-0-core-logic
  • feat/phase-1-tcf-v23-segments
  • feat/phase-1-v23-logic
  • feat/phase-2-validator
  • feat/phase-2-validator-v2
  • feat/phase-3-alignment
  • feat/phase-3-constants-v23-aliases
  • feat/phase-4-bench-and-perf
  • feat/phase-4-performance
  • feat/phase-5-cmp-validator
  • feat/phase-5-cmp-validator-redux
  • feat/phase-6.1-validator-reason
  • feat/phase-6.2-validator-failure
  • feat/phase-6.3-tcf-carve-out
  • feat/phase-6.4-publisher-restriction-reasons
  • feat/phase-6.5-per-call-overrides
  • feat/quality-refinement
  • feat/roadmap-modernization
  • feat/slsa-level-1
  • feat/test-synopsis
  • feat/todo-validator-strict-legal-basis-coupling
  • feat/todo-validator-strict-legal-basis-scope
  • feat/validator-go-alignment
  • fix-but-index-out-of-bonds-while-parsing-range-based-consent-strings
  • fix/bigint-fallback-json-serialization
  • fix/cli-concise-errors
  • fix/cli-error-formatting
  • fix/cli-vendor-id-shadowed-by-version
  • fix/final-review-refinements
  • fix/golden-mem
  • fix/json-regex-key-order-tests
  • fix/optional-cmp-deps
  • fix/perl-5.8-defined-or-syntax
  • fix/pod-files-installed-as-modules
  • fix/post-release-audit
  • fix/publisher-restrictions-boundary-check
  • fix/release-workflow
  • fix/restore-cli-version-option
  • fix/restore-pause-indexation-v0.401
  • fix/uint36-timestamp-32bit-perl
  • fix/use-test-warn
  • fix/vendor-segment-parser-cleanup
  • main
  • refactor-publisher-restrictions
  • refactor-range-section
  • refactor/cmp-validator-rename
  • refactor_bitfield
  • release/0.100
  • release/0.200
  • release/0.350
  • release/0.380
  • release/0.400
  • release/0.401
  • release/0.510
  • release/0.511
  • release/0.512
  • release/0.520
  • release/v0.083
  • release/v0.400
  • v0.06
  • v0.07
  • v0.08
  • v0.081
  • v0.082
  • v0.083
  • v0.084
  • v0.100
  • v0.200
  • v0.201
  • v0.202
  • v0.203
  • v0.300
  • v0.320
  • v0.330
  • v0.340
  • v0.350
  • v0.351
  • v0.352
  • v0.360
  • v0.370
  • v0.380
  • v0.390
  • v0.391
  • v0.400
  • v0.401
  • v0.500
  • v0.510
  • v0.511
  • v0.512
  • v0.520
  • vv0.083

07 May 2026 10:48AM UTC coverage: 95.223% (+0.8%) from 94.404%
25491282391

Pull #62

github

peczenyj
chore(cli): remove --json-array; default JSONL output is enough

Removes the --json-array flag from both `iabtcfv2 dump` and
`iabtcfv2 validate`.  The default JSON Lines output (one JSON
object per line) is the universal format -- every text-processing
tool reads it directly, and `jq -s .` wraps it into a single
JSON array when callers actually need that shape.

Carrying --json-array meant carrying state-tracking code in both
subcommands: opening/closing brackets gated on quiet/text/fail-fast
combinations, comma-injection between records, the dead `_indent`
helper, plus a mutually-exclusive check between --text and
--json-array in validate.  All of that goes; the per-record print
now reduces to `print $j->encode($data) . "\n"`.

Migration: replace `iabtcfv2 dump --json-array ...` with
`iabtcfv2 dump ... | jq -s .` (or any equivalent JSONL-to-array
tool).  POD examples updated to show the jq pipeline.

Test plan:
  - t/10-cli-iabtcfv2.t: dropped the --json-array functional test;
    replaced with a JSONL-shape assertion (multiple TC strings ->
    multiple newline-separated JSON objects).
  - help-text assertion for --json-array dropped; replaced with
    --pretty.
  - Full suite passes (16536 tests; xt/critic and xt/tidy green).

This is technically a breaking CLI change three commits after
v0.370 shipped, but the migration path is one shell pipe.  Worth
the simplification.
Pull Request #62: chore(cli): remove --json-array; JSONL is enough

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

897 of 942 relevant lines covered (95.22%)

12386.56 hits per line

Relevant lines Covered
Build:
Build:
942 RELEVANT LINES 897 COVERED LINES
12386.56 HITS PER LINE
Source Files on chore/remove-json-array-flag
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25491282391 chore/remove-json-array-flag chore(cli): remove --json-array; default JSONL output is enough Removes the --json-array flag from both `iabtcfv2 dump` and `iabtcfv2 validate`. The default JSON Lines output (one JSON object per line) is the universal format -- every text-proce... Pull #62 07 May 2026 10:59AM UTC peczenyj github
95.22
See All Builds (549)
  • 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