File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ export async function handler(event: unknown) {
4343
4444### lambda-api
4545
46- Wrap route handlers with ` withValidation (...)` or call ` validateLambdaApiRequest(...) ` directly.
46+ Wrap route handlers with ` withLambdaApiValidation (...)` or call ` validateLambdaApiRequest(...) ` directly.
4747
4848``` ts
4949import {validateCreateCustomerOrderRequest } from " ./generated/openapi-validators.js"
50- import {withValidation } from " openapi-request-validation"
50+ import {withLambdaApiValidation } from " openapi-request-validation"
5151
5252api .post (
5353 " /customers/:customerId/orders" ,
54- withValidation (validateCreateCustomerOrderRequest , (req , res ) => {
54+ withLambdaApiValidation (validateCreateCustomerOrderRequest , (req , res ) => {
5555 res .send ({ok: true })
5656 }),
5757)
You can’t perform that action at this time.
0 commit comments