amazon-ion / ion-element-kotlin

IonElement is an immutable in-memory representation of the Ion data format. IonElement's API is idiomatic to Kotlin.
Apache License 2.0
8 stars 8 forks source link

Struct update dsl #83

Closed tjcsrc16 closed 2 months ago

tjcsrc16 commented 1 year ago

Issue #, if available:

Description of changes: This adds a builder DSL for copying StructElements while changing / adding new fields. Dropping fields is currently not implemented, but can be added. See test/com/amazon/ionelement/demos/kotlin/StructUpdateDemo.kt for example usage.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@247c128). Click here to learn what that means. Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #83 +/- ## ========================================= Coverage ? 88.96% Complexity ? 459 ========================================= Files ? 31 Lines ? 1015 Branches ? 150 ========================================= Hits ? 903 Misses ? 68 Partials ? 44 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

popematt commented 2 months ago

Closing this since it was mostly superseded by #84. If you still want to contribute path-based accessors, you can re-open this or (probably easier) start a new PR.