Skip to content
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

Open
DamianReeves opened this issue Feb 11, 2022 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@DamianReeves
Copy link
Collaborator

DamianReeves commented Feb 11, 2022

The Codec's Encoder, Decoder, and its combination Codec should support taking an implicit CodecOptions 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 the morphir-elm tooling is a serialized version of the PackageDefinition.

The Codec for PackageDefinition can be found here: https://github.com/finos/morphir-elm/blob/9122b99a6f500af389bfa26c2f7c604ea64485c2/src/Morphir/IR/Package/CodecV1.elm

For reference on how Elm approaches Json encoding see: https://package.elm-lang.org/packages/elm/json/latest/Json-Encode

@DamianReeves DamianReeves added the help wanted Extra attention is needed label Feb 11, 2022
@dmitrykozinets dmitrykozinets self-assigned this Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants