mnahkies / openapi-code-generator

A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
https://openapi-code-generator.nahkies.co.nz/
MIT License
20 stars 2 forks source link

feat!: parse/validate request headers #247

Closed mnahkies closed 2 months ago

mnahkies commented 2 months ago

the typescript-koa template will now generate a type and schema for any declared header parameters, and use this to parse the headers and pass through to the handlers.

BREAKING CHANGE: requests receiving incorrect request header parameters will now fail with a validation error