kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

[koa-openapi] fix koa security middleware order (fixes #286 for koa) #773

Closed medfreeman closed 2 years ago

medfreeman commented 2 years ago

Depends on #772.

As the title of #286 says, "Security checks run after data (body/params) validation". This issue exposed the problem, was fixed for express in PR 288, but a fix was not included for koa. This fixes it.