Skip to content

feat: add JsonPatch structure and unit tests#993

Open
akshayabogoju-coder wants to merge 4 commits intozio:mainfrom
akshayabogoju-coder:main
Open

feat: add JsonPatch structure and unit tests#993
akshayabogoju-coder wants to merge 4 commits intozio:mainfrom
akshayabogoju-coder:main

Conversation

@akshayabogoju-coder
Copy link
Copy Markdown

@akshayabogoju-coder akshayabogoju-coder commented Jan 30, 2026

Overview

Initial implementation of JsonPatch for zio-schema-json to support basic record manipulation via DynamicValue.

Changes

  • JsonPatch Logic: Added JsonPatch sealed trait with Add and Remove operations for DynamicValue.Record.
  • Warning Fixes: Resolved -Xfatal-warnings by explicitly defining return types and handling parameters to ensure Scala 3 migration compatibility.
  • Compatibility: Ensured ListMap usage to maintain field ordering, consistent with ZIO Schema's internal record representation.

Verification

  • Compile: sbt "zioSchemaJsonJVM / compile"Success (0 warnings).
  • Tests: sbt "zioSchemaJsonJVM / test"290 tests passed, 0 failed.
  • Spec Verification: Confirmed JsonPatchSpec executes correctly with no regressions.

All checks passed locally. Ready for review and merge.
Screenshot 2026-02-01 155622

@akshayabogoju-coder akshayabogoju-coder requested a review from a team as a code owner January 30, 2026 18:36
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 30, 2026

CLA assistant check
All committers have signed the CLA.

@akshayabogoju-coder akshayabogoju-coder force-pushed the main branch 6 times, most recently from 0c34d96 to d31bcaf Compare January 31, 2026 10:04
@akshayabogoju-coder
Copy link
Copy Markdown
Author

All checks are passing now. I have fixed the linting and import order issues. Ready for review! @kitlangton @adamgfraser

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