© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms

Initial Release
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.
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:
string property%DynamicObject or %DynamicArrayThe 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)
👉 Check out our Contributing Guidelines for more details.