2 way transformations possibility
See original GitHub issueI went through documentation and I am wondering, whether there is something like cast
reverse.
Here is my use case.
Lets say I have schema with a Date field. Now cast
calls chain of transformations.
But I am interested in 2 sides of it, namely string > Date and Date > string, can this be achieved somehow?
With this, I could use one yup schema as a serializer/deserializer, which would be awesome.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Lesson 9: Data Transformations - STAT ONLINE
It is easy to understand how transformations work in the simple linear regression context because we can see everything in a scatterplot of...
Read more >Identifying function transformations (video) - Khan Academy
Sal walks through several examples of how to write g(x) implicitly in terms of f(x) ... What would the transformation do if g(x)=(x+6)^...
Read more >Identifying type of transformation (video) - Khan Academy
So a line that has slope of positive 3/ 2. So this one looks right in between the two. Or actually it could...
Read more >Transformations of Random Variables - Arizona Math
The associated probability µg(X) is called the distribution of g(X). ... Then Y = X + a is a uniform random variable on...
Read more >Transformation and potentialization: how to extend the present ...
203–238). To sum up, we claim that the potentiality administration actualizes the potentialization of possibilities. In every communicative ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There isn’t anything built into yup for this specifically but the pattern i often use is to define two schema and export serialize/deserialize functions something like:
@jquense Added in #282