Login to follow
JsonValidator

JsonValidator (ODC)

Stable version 0.1.1 (Compatible with ODC)
Uploaded on 03 July 2025 by OutSystems Labs
JsonValidator

JsonValidator (ODC)

Details
Detailed Description

The purpose of this componenty is to validate a JSON document against a JSON Schema using the Newtonsoft.Json library and Newtonsoft.Json.Schema. The code performs the following actions:

  • Reads JSON Schema and JSON Document: Accepts input as byte arrays and converts them into strings.

  • Validates JSON Document: Uses the JSON Schema to validate the structure and data types in the JSON document.

  • Handles Errors: Returns detailed validation errors, including line and position, if the JSON document does not conform to the schema.

Limitations

Without licence key, Newtonsoft has a limit of 1000 schema validations per hour

Release notes 

Enhanced ValidateJson to support both JSON objects and arrays.