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 c285fe49..97e6acfe 100644 --- a/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml +++ b/components/schemas/environments/services/loadbalancer/config/types/v1/WafConfig.yml @@ -61,15 +61,32 @@ properties: - http-header-match - http-body-match operator: - description: A string that indicates the range of values relative to the value property. type: string + description: | + Defines the comparison operator used to evaluate the rule condition + against the provided `value`. enum: - "==" - "!=" + - "*=" + - "!*=" + - "^=" + - "!^=" - ">" - "<" - ">=" - "<=" + x-enum-descriptions: + - "Equal to — the condition value must exactly match." + - "Not equal to — the condition value must differ." + - "Contains — the request value must contain the provided substring." + - "Does not contain — the request value must not contain the substring." + - "Starts with — the request value must begin with the provided prefix." + - "Does not start with — the request value must not begin with the prefix." + - "Greater than — numeric comparison." + - "Less than — numeric comparison." + - "Greater than or equal — numeric comparison." + - "Less than or equal — numeric comparison." value: description: The value corresponding to the condition type. examples: diff --git a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml index fe1a364c..e4e425b7 100644 --- a/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml +++ b/stackspec/schema/services/loadbalancer/types/v1/StackSpecWafConfig.yml @@ -76,16 +76,33 @@ properties: - http-body-match - $ref: ../../../../StackVariable.yml operator: - description: A string that indicates the range of values relative to the value property. + description: | + Defines the comparison operator used to evaluate the rule condition + against the provided `value`. oneOf: - type: string enum: - "==" - "!=" + - "*=" + - "!*=" + - "^=" + - "!^=" - ">" - "<" - ">=" - "<=" + x-enum-descriptions: + - "Equal to — the condition value must exactly match." + - "Not equal to — the condition value must differ." + - "Contains — the request value must contain the provided substring." + - "Does not contain — the request value must not contain the substring." + - "Starts with — the request value must begin with the provided prefix." + - "Does not start with — the request value must not begin with the prefix." + - "Greater than — numeric comparison." + - "Less than — numeric comparison." + - "Greater than or equal — numeric comparison." + - "Less than or equal — numeric comparison." - $ref: ../../../../StackVariable.yml value: description: The value corresponding to the condition type.