Home Applications iris-fastjsonschema

iris-fastjsonschema

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
4.5
1 reviews
0
Awards
165
Views
0
IPM installs
1
1
Details
Releases (1)
Reviews (1)
Issues
Articles (1)
iris‑fastjsonschema is a lightweight, high-performance JSON Schema validation toolkit. It combines the simplicity and speed of fastjsonschema with additional support for “iris”-style schema definitions

What's new in this version

Initial Release

iris-fastjsonschema

iris‑fastjsonschema is a lightweight, high-performance JSON Schema validation toolkit. It combines the simplicity and speed of fastjsonschema with additional support for “iris”-style schema definitions

FastJsonSchema generates native ObjectScript code from the JSON Schemas and compiles it directly

The fastjsonschema library is designed to support JSON Schema Draft-07. For more information, see the official specification.

Usage

Compile the schema

Set sc = ##class(FastJsonSchema.Core).Compile(schema, schemaName)

Validate the json object against the schema

Set payload =  ##class(FastJsonSchema.Core).Validate(schemaName, JSONObject)

The Compile and Validate methods require the following:

  • SchemaName — a string property
  • schema / JSONObject — a %DynamicObject or %DynamicArray

Testing

The schema is already preloaded in the class FastJsonSchema.Test.Data.Draft7.

To run all tests, execute:

do ##class(FastJsonSchema.Test.Draft7).RunAllTest()

To run a specific schema:

// Select a specific schema from Draft7 (schemas named SampleSchema*)
set schema = ##class(FastJsonSchema.Test.Data.Draft7).SampleSchema19()
set name="test19"
// Run the test for that specific schema
set sc = ##class(FastJsonSchema.Test.Draft7).RunSingleTest(name, schema)

Contrbution

👉 Check out our Contributing Guidelines for more details.

Last checked by moderator
19 Jan, 2026Works
Made with
Install
zpm install FastJsonSchema download archive
Version
1.0.017 Nov, 2025
Ideas to the app
https://ideas.intersystems.com/ideas/DPI-I-770
Category
Solutions
Works with
InterSystems IRISInterSystems IRIS for HealthHealthShareTrakCareInterSystems FHIRHealth Connect Cloud
First published
17 Nov, 2025
Last edited
17 Nov, 2025