Support validation for the parameters in cookie

Issue #224 resolved
yusong shen created an issue

Current library seems to only verify the parameter in header and query, if it is specified in cookie, there will not have any validation against it.

https://swagger.io/docs/specification/describing-parameters/#cookie-parameters

https://bitbucket.org/atlassian/swagger-request-validator/src/master/swagger-request-validator-core/src/main/java/com/atlassian/oai/validator/interaction/request/RequestValidator.java

I think a validateCookieParameters method need to be added to comply with specification.

Comments (8)

  1. James Navin

    Thanks for raising this.

    You are correct - at the moment Cookie validation is not supported.

    See https://bitbucket.org/atlassian/swagger-request-validator/src/master/docs/OPENAPIv3.md for the list what parts of the OpenAPI spec are currently supported.

    The goal is (of course) to eventually get full coverage, but its going to be a matter of prioritization. If this is a blocker for you feel free to raise a PR and I’ll review it - always happy to accept contributions.

  2. Log in to comment