diff --git a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml index 57b8893c..86742656 100644 --- a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml +++ b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml @@ -52,6 +52,15 @@ properties: type: - integer - "null" + response: + description: Response configuration for when the rule is triggered. + oneOf: + - type: object + properties: + http_code: + description: The HTTP code that will be sent back to the requester on rule match. + type: integer + - type: "null" conditions: description: An array of the specific conditions for the rule. type: array diff --git a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml index d992e8d8..8a53d22a 100644 --- a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml +++ b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml @@ -64,6 +64,16 @@ properties: - type: integer - type: "null" - $ref: ../../../../StackVariable.yml + response: + description: Response configuration for when the rule is triggered. + oneOf: + - type: object + properties: + http_code: + description: The HTTP code that will be sent back to the requester on rule match. + type: integer + - type: "null" + - $ref: ../../../../StackVariable.yml conditions: description: An array of the specific conditions for the rule. oneOf: