higherstate / dsentric Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
If traversal cannot complete due to expected object, then unapply should return a None
When using the nonEmpty
validator on a Map
type in a contract it won't compile.
object Minimal extends Contract {
val someMap = \[Map[String, String]](nonEmpty)
}
Compilation errors with:
overloaded method value \ with alternatives:
(path: dsentric.Path,validator: dsentric.Validator[Map[String,String]])(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] <and>
(path: dsentric.Path)(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] <and>
(name: String,validator: dsentric.Validator[Map[String,String]])(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] <and>
(name: String)(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] <and>
(validator: dsentric.Validator[Map[String,String]])(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] <and>
(implicit codec: dsentric.DCodec[Map[String,String]])dsentric.Expected[dsentric.DObject,Map[String,String]] cannot be applied to (dsentric.Validator[dsentric.Optionable[dsentric.Length]]{val message: String})
val someMap = \[Map[String, String]](nonEmpty)
Which is odd considering Map
is an Iterable
and
type Length = String with Iterable[Nothing] with Vector[Nothing]
Require a DCodec for handling generic case classes
Require an HList DCodec as well as autogeneration of tuple codecs.
We can identify {} as a no change element in an array
and shriking the array removes the elements, and increasing it adds elements
not ideal for large arrays, but good for Tuples and small arrays
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.