This example demonstrates how to use express-openapi-validator with NestJS.
From this 9-nestjs directory, run:
npm cinpm run startor
npm run start:devnpm run build
npm run start:prodcurl --request GET --url http://localhost:3000/ping/foocurl --request POST \
--url http://localhost:3000/ping \
--header 'Content-Type: application/json' \
--data '{"ping": "GNU Terry Pratchett"}'validation error
curl --request POST \
--url http://localhost:3000/ping \
--header 'Content-Type: application/json' \
--data '{"pingoo": "GNU Terry Pratchett"}'|jqnpm run test