Path -parameter not validated if left empty

Issue #327 new
Former user created an issue

Following is not caught in input validation in case path parameter is not entered in url - left empty:

uuidInPath: name: param in: path required: true schema: $ref: '../common/types.yaml#/components/schemas/Uuid'

......

Uuid: type: string pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'

In this case we have required set as true and also the regular expression is not allowing empty values. Request passes when path parameter is empty though.

Comments (1)

  1. James Navin

    Thanks for raising this.

    It would be useful to see the API spec (or a redacted version) that produces the problem, if possible (e.g. is the path param at the end of the path? within a path segment? are there overlapping paths that might get selected?)

  2. Log in to comment