Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 968 Bytes

File metadata and controls

24 lines (16 loc) · 968 Bytes
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > IJsonSchemaValidateOptions > customErrorHeader

IJsonSchemaValidateOptions.customErrorHeader property

A custom header that will be used to report schema errors.

Signature:

customErrorHeader?: string;

Remarks

If omitted, the default header is "JSON validation failed:". The error message starts with the header, followed by the full input filename, followed by the ajv error list. If you wish to customize all aspects of the error message, use JsonFile.loadAndValidateWithCallback() or JsonSchema.validateObjectWithCallback().