Comments (2)
Why is it needed to extract lenses automatically and if so, how decide which of all possible lenses? there are so many possible combinations, any attribute, any nesting laayer, etc. When I am using a schema with ADTs involved, I usually define only the few needed lenses ad-hoc with the help of macros and apply it in the same line e.g.
import monocle.macros.GenLens
GenLens[MyADT](._myAttribute.myDeeperAttribute).modify(f=>f+1)(myAdtInstance01)
which is producing a modified instance of myAdtInstance01
.
from zio-schema.
Closed by #121
from zio-schema.
Related Issues (20)
- Decode json with field default value works only on all fields have default value
- Contributor's Guide page not found HOT 8
- How to serialize double value to plain format in json encoder?
- Build with newer java verions HOT 5
- Extract Scaladoc to annotation for Scala 3 HOT 4
- JSON Codec: Empty objects as values of optional fields leads to parse error HOT 4
- Performance Optimization: Avoid recalculating static information with each codec call HOT 5
- Scala 3: Enum case annotations are the parent annotations for derived schema HOT 4
- Check default value existence for transient fields in derive macro HOT 2
- Schema deterministic hashcode for DynamicValue HOT 2
- Error decoding empty object with optional fields
- Class java.math.BigDecimal cannot be cast to class scala.math.BigDecimal in schema-bson HOT 4
- Json Codec: Read missing field as empty collection HOT 4
- Schema derivation fails for enumeration with empty sub-tree HOT 2
- JSON codec built from auto-derived schema fails for enumeration with intermediate type HOT 2
- Bson Codec: Support ObjectId
- Unable to publishLocal on Windows 11 using Scala 3 HOT 2
- JsonCodec fails to decode pretty printed case class with Option[Int/Long] when it is last field HOT 2
- Checking of README on Pull Requests is Deprecated
- JSONCodec.decoder streaming is broken with optional values HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zio-schema.