error-policy

This command specifies the behavior of the validate assembly action when the schema to validate against is GraphQL but the input data is JSON and the server returns an error.

Syntax

error-policy policy

Parameter

policy
Specifies the error policy. The following values are supported. The default value is all.
all
Indicates that the validate assembly action returns the error and validates the payload. If a replenish action is applied to the assembly rate limit, the remaining number of allowed requests is not increased.
ignore
Indicates that the validate assembly action removes the error and validates the payload. If a replenish action is applied to the assembly rate limit, the remaining number of allowed requests is increased.
none
Indicates that the validate assembly action stops and the error is returned.

Guidelines

The error-policy command specifies the behavior of the validate assembly action when the schema to validate against is GraphQL but the input data is JSON and the server returns an error.