This repository has been archived by the owner on Sep 17, 2022. It is now read-only.
Create a morphir-ir-json project which defines JsonCodecs for the Morphir IR. #35
Labels
help wanted
Extra attention is needed
The Codec's
Encoder
,Decoder
, and its combinationCodec
should support taking an implicitCodecOptions
object which for one should allow us to target handling specific versions of the Morphir IR JSON serialization targets.We should start by supporting encoding and decoding as
morphir-elm
does.We should encode according to how morphir-elm does it.
The morphir-elm codebase defines
Codecs
for its JSON pieces.The
morphir.ir.json
files that are produced by themorphir-elm
tooling is a serialized version of thePackageDefinition
.The Codec for
PackageDefinition
can be found here: https://github.com/finos/morphir-elm/blob/9122b99a6f500af389bfa26c2f7c604ea64485c2/src/Morphir/IR/Package/CodecV1.elmFor reference on how Elm approaches Json encoding see: https://package.elm-lang.org/packages/elm/json/latest/Json-Encode
The text was updated successfully, but these errors were encountered: