Validate policy commands

Validate policy mode provides the commands to specify a validate policy.

To enter the mode, use the global assembly-validate command.

While in this mode, use the commands in the following table to define the validate policy.

  • To view the current configuration, use the show command.
  • To restore default values, use the reset command.
  • To exit this configuration mode without saving changes to the running configuration, use the cancel command.
  • To exit this configuration mode and save changes to the running configuration, use the exit command.
Table 1. Validate policy commands
Command Purpose
admin-state This command sets the administrative state for the configuration.
compile-settings-validate This command specifies a compile settings configuration to override the system default compile settings.
correlation-path This command specifies the part of the API definition that correlates with the policy.
definition This command specifies the path to a schema in the API definition to validate payloads.
error-policy This command specifies the behavior of the validate policy when the schema to validate against is GraphQL but the input data is JSON and the server returns an error.
input This command specifies the variable in the API context that contains the input to validate for the validate policy.
output This command specifies the name of the variable in the API context where the results of the validate policy are stored.
schema This command specifies the API schema to validate payloads.
summary This command specifies the brief, descriptive summary for the object instance.
title This command specifies the title for the configuration.
validate-against This command specifies the type of schema to validate against.