Unable to send "null" value for Header or query param.

Issue #407 new
Former user created an issue

We have given schema for header "Test"

- in: header
  required: true
  name: Test
  schema:
    type: string

When we send header "Test" with value "null"

Actual behavior: There is an error: "header Test: Instance type (null) does not match any allowed primitive type(allowed:[\"string\"])"

Expected behavior:

Validation should pass as there is no such thing as a null value in Header or query parameter. Contrary to JSON when we can differentiate "null" string to a null value.

"null" in headers should be treated as "string" value and validation should pass.

Comments (0)

  1. Log in to comment