MuleSoft · JSON Module

JSON:SCHEMA_NOT_HONOURED

Short answer

JSON:SCHEMA_NOT_HONOURED means the JSON Module's Validate schema operation found that the document does not match its JSON schema. The error description holds a JSON array with one object per validation error, so read it to see which fields failed.

VerifiedLast verified

01Error text

MuleSoft error
Error type: JSON:SCHEMA_NOT_HONOURED

02Likely causes

  • Validation failed because the input does not adhere to its schema.
  • Example messages are object has missing required properties (["b"]) and string "" is too short (length: 0, required minimum: 1).

03How to fix it

  1. Read the error description. It contains a JSON array with one object for each validation error.
  2. Correct the document, or the schema if it is stricter than intended.
  3. Handle the failure with an error handler of type JSON:SCHEMA_NOT_HONOURED.

iNotes

JSON Schema Drafts 3 and 4 return a different payload shape from later drafts.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.