Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Getting error while trying to validate the X-Forwarded-For against OASValidation policy in EDGE

In my case, we will get multiple X-Forwarded-For header values. I am using this header type as array and style as simple in parameters of yaml. But i am getting error when i pass multiple values.

OASValidation OAS.Validate with resource "oas://OAS.Validate.yaml": failed with reason: "[ERROR - Parameter 'X-Forwarded-For' expected an array style of 'simple' [explode=false].: []]"

 

X-Forwarded-For 

1.2.3.4,5.6.7.8

Yaml ::

- name: X-Forwarded-For
          in: header
          description: ''
          schema:
            type: array
            items:
              type: string
          style: simple
          explode: false

I have tried removing explode and also changing the explode to true but no luck.

Could someone guide me on this please?

0 3 259
3 REPLIES 3