Sky.Core.Json.Decode.Pipeline
Sky.Core.Json.Decode.Pipeline — pipeline-style record decoding
Values
custom : Decoder a -> Decoder (a -> b) -> Decoder b
Inject a custom decoder into the pipeline (more general than
optional : String -> Decoder a -> a -> Decoder (a -> b) -> Decoder b
Decode an optional field; fall back to the supplied default
required : String -> Decoder a -> Decoder (a -> b) -> Decoder b
Decode a required field by name.
requiredAt : List String -> Decoder a -> Decoder (a -> b) -> Decoder b
Like `required` but takes a path (list of nested keys) into