Skip to main content

Morphir IR Schema Version 4 - Complete Schema

This page contains the complete JSON schema definition for Morphir IR format version 4 (draft).

Download

You can download the schema file directly:

Interactive Viewer

For an interactive browsing experience, see the Interactive Schema Viewer.

Usage

This schema can be used to validate Morphir IR JSON files in format version 4:

# Using Python jsonschema (recommended for YAML schemas)
pip install jsonschema pyyaml requests
python -c "import json, yaml, jsonschema, requests; \
schema = yaml.safe_load(requests.get('https://morphir.finos.org/schemas/morphir-ir-v4.yaml').text); \
data = json.load(open('your-morphir-ir.json')); \
jsonschema.validate(data, schema); \
print('✓ Valid Morphir IR')"

References