Skip to content

Fix JSON codecs to initialize empty collection properly + bump up coverage limits + remove coverage exclusion for compile-time code#1210

Merged
plokhotnyuk merged 1 commit intozio:mainfrom
plokhotnyuk:main
Mar 12, 2026
Merged

Fix JSON codecs to initialize empty collection properly + bump up coverage limits + remove coverage exclusion for compile-time code#1210
plokhotnyuk merged 1 commit intozio:mainfrom
plokhotnyuk:main

Conversation

@plokhotnyuk
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 12, 2026 09:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates JSON binary codec derivation internals (especially record-field handling for default/missing collections) and revises per-module scoverage minimum thresholds in the build.

Changes:

  • Refactors record FieldInfo to use an emptyCollectionConstructor (instead of a cached empty instance) and streamlines optional/collection flags.
  • Re-tunes coverageMinimumStmtTotal / coverageMinimumBranchTotal for multiple subprojects in build.sbt (and removes some prior per-module coverage exclusions).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
schema/shared/src/main/scala/zio/blocks/schema/json/JsonBinaryCodecDeriver.scala Refactors how missing collection fields are defaulted and adjusts field metadata / encoding paths.
build.sbt Updates per-project scoverage minimums and removes prior macro-source coverage exclusions; also changes benchmark project coverage settings.

You can also share your feedback on Copilot code review. Take the survey.

…erage limits + remove coverage exclusion for compile-time code
@plokhotnyuk plokhotnyuk changed the title Fix JSON codecs to initialize empty collection properly + more efficient serialization of optional field values for primitives with JSON codecs + bump up coverage limits + remove coverage exclusion for compile-time code Fix JSON codecs to initialize empty collection properly + bump up coverage limits + remove coverage exclusion for compile-time code Mar 12, 2026
@plokhotnyuk plokhotnyuk merged commit 06c9be6 into zio:main Mar 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants