This is sample API that outputs OpenAPI specifications based on the validation schema defined by Zod.
Check the example of Swagger-UI from here.
https://joe-king-sh.github.io/fastify-zod-swagger/
$ node --version
node v18.2.1
$ npm i
$ npm run dev
This repository stores sample codes for the below article.