Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: parse/validate request headers #247

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Conversation

mnahkies
Copy link
Owner

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

@mnahkies mnahkies changed the title feat: parse/validate request headers feat!: parse/validate request headers Sep 20, 2024
@mnahkies mnahkies marked this pull request as ready for review September 20, 2024 13:15
@mnahkies mnahkies enabled auto-merge (squash) September 20, 2024 13:15
@mnahkies mnahkies merged commit 682d0c9 into main Sep 20, 2024
2 checks passed
@mnahkies mnahkies deleted the mn/feat/parse-request-headers branch September 20, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant