Morphir IR Schema Version 4 - Interactive Viewer
This page provides an interactive viewer for the Morphir IR JSON Schema version 4 (draft).
Download
- JSON: morphir-ir-v4.json
- YAML: morphir-ir-v4.yaml
Interactive Schema Viewer
Browse the schema structure interactively below.
Loading schema...
Schema Highlights
Version 4 is the next generation format with significant improvements:
Wrapper Object Format
V4 uses wrapper objects instead of tagged arrays:
// V3: ["Library", packageName, dependencies, definition]
// V4: { "Library": { "packageName": "...", "dependencies": {...}, "def": {...} } }
Canonical String Formats
| Type | Array Format | String Format |
|---|---|---|
| Name | ["user", "id"] | "user-id" |
| Path | [["morphir"], ["sdk"]] | "morphir/sdk" |
| FQName | [[pkg], [mod], [name]] | "pkg:mod#name" |
New Features
- Distribution Types: Library, Specs, Application
- New Value Expressions: Hole, Native, External
- Explicit Attributes: TypeAttributes, ValueAttributes with source locations