Comments (7)
@alexvanolst Thank you for picking this up!
We were thinking of adding annotation on all types and doing something like this:
sealed trait Schema[A] {
def annotations: Chunk[Any]
}
@thinkharderdev @DamianReeves what do you think?
from zio-schema.
I'd like to pick this one up.
from zio-schema.
Other than Enum / Case is there anything left to do here? Happy to pick up the rest post hackathon if someone can point out any gaps.
from zio-schema.
Yes! I think we ultimately want to allow annotating any schema.
from zio-schema.
from zio-schema.
I've opened a draft PR that gets it compiling with annotations added to the Schema trait.
Will probably need some feedback on what the desired behaviour is before it's merge-able since they don't do much right now.
from zio-schema.
Closed by #147
from zio-schema.
Related Issues (20)
- Protobuf Codec is slower than expected on modest input HOT 1
- Add scaladoc to codec annotations HOT 4
- Improve DynamicValue error message
- Improve DynamicValue error handling HOT 3
- Unable to create schema from ADT HOT 2
- add a codec annotation to mark a sealed trait as having all case object members HOT 7
- Deriver fails at runtime on opaque types HOT 3
- Derivered schema from ADT with type parameters fails to compile HOT 4
- Unable to convert to TypedValue HOT 3
- Derivation Error in Scala 3.2.2 HOT 4
- Support scala 3 derives keyword
- JSON decoding failure for ADTs HOT 8
- Enum of CaseClass0 should be encoded as string
- JSON encoding/decoding is not symmetrical for unwrapped ADT's HOT 2
- Add MongoDB BSON codec HOT 6
- Support multi-platform including Scala native HOT 5
- Compilation error on recursive GADT HOT 4
- Get default value from case class default paramters HOT 9
- Add java.util.Currency as a Standard Type HOT 4
- Bug: JsonDecoder on Map HOT 2
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.