Skip to main content
Version: Next

Action: assert

Validate an event against a JSON Schema, based on IETF's draft v7 (http://json-schema.org)

Field Summary

Field NameTypeDescriptionDefault
conditionexpressionOnly run this action if the condition the specified condition is met-
schema-filepathFilename of the json-schema file for this action-
schemastringString containing json-schema-
abort-on-failureboolAbort the pipe in the event of schema validation failurefalse
drop-event-on-failureboolDrop the current event in case of scheme validation failurefalse
no-warningsboolDo not emit warnings when schema validation failsfalse

Fields

condition

Type: expression

Only run this action if the condition the specified condition is met

schema-file

Type: path

Filename of the json-schema file for this action

schema

Type: string

String containing json-schema

abort-on-failure

Type: bool

Default: false

Abort the pipe in the event of schema validation failure

drop-event-on-failure

Type: bool

Default: false

Drop the current event in case of scheme validation failure

no-warnings

Type: bool

Default: false

Do not emit warnings when schema validation fails