Skip to main content

Morphir IR Schema Version 3 - Interactive Viewer

This page provides an interactive viewer for the Morphir IR JSON Schema version 3 (current stable).

Download​

Interactive Schema Viewer​

Browse the schema structure interactively below.

Loading schema...

Schema Highlights​

Version 3 is the current stable version with consistent PascalCase tags:

ElementTag Format
Distribution"Library"
Access Control"Public", "Private"
Type Tags"Variable", "Reference", "Tuple", "Record", "Function", "Unit"
Value Tags"Apply", "Lambda", "Literal", "LetDefinition", "PatternMatch"
Literal Tags"BoolLiteral", "StringLiteral", "WholeNumberLiteral", "FloatLiteral"

Examples​

LCR (Liquidity Coverage Ratio)​

The LCR is a comprehensive real-world example of Morphir IR v3. It demonstrates regulatory calculations for banking liquidity requirements, showcasing:

  • Complex type definitions (records, custom types)
  • Business logic as pure functions
  • Pattern matching and conditional expressions
  • Module organization for regulatory domains

Download: lcr-morphir-ir.json

Loading LCR example (3.5 MB)...

References​