{"_id":"@bram-dc/fastify-type-provider-zod","_rev":"11-a06413f0e15b3c4fa56bebcfd69aaaf1","name":"@bram-dc/fastify-type-provider-zod","dist-tags":{"latest":"7.0.1"},"versions":{"3.0.0":{"name":"@bram-dc/fastify-type-provider-zod","version":"3.0.0","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@3.0.0","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/bram-dc/fastify-type-provider-zod","bugs":{"url":"https://github.com/bram-dc/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"320b083b3f10bfdb3f24bf6a89f9d4d24a401665","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-3.0.0.tgz","fileCount":5,"integrity":"sha512-f3+z6G06nB3ner2AbvcGni/uldD5qJAtyPBGKIlI/TLaempZ7q4ip7cq8p6QYTedqUqld4114Bxf/jSmuNtwLQ==","signatures":[{"sig":"MEYCIQCYfL8rbNe24Aa6yEW6j6erLw96kYZyIfGKGd7onYr91AIhAJqo4/j4IbD7ZPErL5iPIjmGI9nHacbo8XNCqYylzXFo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15482},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"5cbfa5e868d33925d957d84b22eae50a34715693","private":false,"scripts":{"lint":"eslint .","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"eslint --fix .","typescript":"tsd","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/bram-dc/fastify-type-provider-zod.git"},"_npmVersion":"10.5.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.8.0","dependencies":{"@fastify/error":"^4.0.0","zod-to-json-schema":"^3.23.3"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^3.23.8","eslint":"^9.10.0","vitest":"^2.1.1","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^22.5.5","oas-validator":"^5.0.8","openapi-types":"^12.1.3","fastify-plugin":"^5.0.0","@fastify/swagger":"^9.0.0","typescript-eslint":"^8.6.0","@fastify/swagger-ui":"^5.0.1","@stylistic/eslint-plugin":"^2.8.0"},"peerDependencies":{"zod":"^3.23.8","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_3.0.0_1726839303499_0.462531677991149","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@bram-dc/fastify-type-provider-zod","version":"3.1.0","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@3.1.0","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/bram-dc/fastify-type-provider-zod","bugs":{"url":"https://github.com/bram-dc/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"a5b824b4f901583cde812f048a36fa4869836ec9","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-3.1.0.tgz","fileCount":5,"integrity":"sha512-l+3dabD7g3oHAuNpsR481kA4Prk5M5oVSw7d+l0kj84yXrKeHAvYQvXQlOdD+h20rZkvf6mRmQX26UKuEzus2w==","signatures":[{"sig":"MEUCIHcaaxCQUTE+RKZd0K616SUE4vpOtT/aXECTsqXExIcrAiEArNMhpn/uoCCA7ZvyipLNvQhy2706CEtMitlaIUbW/tg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16038},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9afbcfa7eae08968d8b5cd9e8ffd65a3fecdbf87","scripts":{"lint":"eslint .","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"eslint --fix .","typescript":"tsd","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/bram-dc/fastify-type-provider-zod.git"},"_npmVersion":"10.5.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.8.0","dependencies":{"@fastify/error":"^4.0.0","zod-to-json-schema":"^3.23.3"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^3.23.8","eslint":"^9.10.0","vitest":"^2.1.1","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^22.5.5","oas-validator":"^5.0.8","openapi-types":"^12.1.3","fastify-plugin":"^5.0.0","@fastify/swagger":"^9.0.0","typescript-eslint":"^8.6.0","@fastify/swagger-ui":"^5.0.1","@stylistic/eslint-plugin":"^2.8.0"},"peerDependencies":{"zod":"^3.23.8","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_3.1.0_1726841756859_0.6026103071350666","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"@bram-dc/fastify-type-provider-zod","version":"3.1.1","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@3.1.1","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/bram-dc/fastify-type-provider-zod","bugs":{"url":"https://github.com/bram-dc/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"3a33f5c4594cc495f873bb946f8e48d012d8b00e","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-3.1.1.tgz","fileCount":5,"integrity":"sha512-kBJXW72LgB7Wy2IEbW0u+8HwJqPWDsu9cMBpSwavZQKo1P3cfA6n2nlw6wRC9xZc4jC5J6seGa+bVObNB9iWzA==","signatures":[{"sig":"MEUCIDQDBt7m0XLWYZ2a25iRrAIauFKh6yEbB8yDCm1/Eur4AiEA1hl5gUUwRyYJyRB/lX8cIg9lPat2L8ozShnnttqtx6k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16065},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"047b11cb5f4d49e94c2280086f39dcc6912345a6","scripts":{"lint":"eslint .","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"eslint --fix .","typescript":"tsd","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/bram-dc/fastify-type-provider-zod.git"},"_npmVersion":"10.5.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.8.0","dependencies":{"@fastify/error":"^4.0.0","zod-to-json-schema":"^3.23.3"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^3.23.8","eslint":"^9.10.0","vitest":"^2.1.1","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^22.5.5","oas-validator":"^5.0.8","openapi-types":"^12.1.3","fastify-plugin":"^5.0.0","@fastify/swagger":"^9.0.0","typescript-eslint":"^8.6.0","@fastify/swagger-ui":"^5.0.1","@stylistic/eslint-plugin":"^2.8.0"},"peerDependencies":{"zod":"^3.23.8","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_3.1.1_1727081130543_0.9424072598164499","host":"s3://npm-registry-packages"}},"3.1.2":{"name":"@bram-dc/fastify-type-provider-zod","version":"3.1.2","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@3.1.2","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/bram-dc/fastify-type-provider-zod","bugs":{"url":"https://github.com/bram-dc/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"bc72790301aa6f0990a9d927acfd683b4a27f903","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-3.1.2.tgz","fileCount":15,"integrity":"sha512-iFJhDaTRtJ+T4bWyy0Rnh2KRm+T+KZYhz62yXMfdowBNF+IIWRPb6ZXpRlbrlD3mZYZ0y8KvqY58cD4NnuDGSg==","signatures":[{"sig":"MEYCIQDRwi68hXb9++yaI7D8WhxyPrcrWWBn+gC9dvTDC9JEGQIhAMnnlqGfNQ/GgNH33bbiMIaaKJ/DgB5NsXmhb1/EM5Wn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29038},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"54c78b8298318eff7f9e3803c5cf1e5eaed8c0b2","scripts":{"lint":"eslint .","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"eslint --fix .","typescript":"tsd","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/bram-dc/fastify-type-provider-zod.git"},"_npmVersion":"10.5.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.8.0","dependencies":{"@fastify/error":"^4.0.0","zod-to-json-schema":"^3.23.3"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^3.23.8","eslint":"^9.10.0","vitest":"^2.1.1","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^22.5.5","oas-validator":"^5.0.8","openapi-types":"^12.1.3","fastify-plugin":"^5.0.0","@fastify/swagger":"^9.0.0","typescript-eslint":"^8.6.0","@fastify/swagger-ui":"^5.0.1","@stylistic/eslint-plugin":"^2.8.0"},"peerDependencies":{"zod":"^3.23.8","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_3.1.2_1727276085085_0.12392899802410429","host":"s3://npm-registry-packages"}},"4.0.2":{"name":"@bram-dc/fastify-type-provider-zod","version":"4.0.2","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@4.0.2","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"d72b901037f82a4d8b08a41d6d60e6506cecd6c1","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-4.0.2.tgz","fileCount":9,"integrity":"sha512-ijEg+03L74i7rSR4Nj+ulXp2S/uQREg2sBF7BN3cyNT/XZ4txVnT6LNDxtfBOUnsGAvGf28ND+zov0rE82o8+w==","signatures":[{"sig":"MEQCIEAU5fxPYhwWCHcvQq3ZKq6IoYCT+iQg+bo7yRD5pFJYAiBQ1WFuTS+SdkRWn6fETgWCCCxlDrQCF+xwfxMvGf0wqA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22627},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"c7e4c8fde05f5434ccd8e114fd4c787d4c44b104","scripts":{"lint":"biome check . && tsc --project tsconfig.lint.json --noEmit","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"biome check --write .","typescript":"tsd","test:coverage":"vitest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"_npmVersion":"10.9.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@fastify/error":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^4.0.0-beta.20250412T085909","vitest":"^2.1.2","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^20.16.10","oas-validator":"^5.0.8","@biomejs/biome":"^1.9.3","fastify-plugin":"^5.0.1","@fastify/swagger":"^9.1.0","@fastify/swagger-ui":"^5.0.1","@vitest/coverage-v8":"^2.1.2","@kibertoad/biome-config":"^1.2.1"},"peerDependencies":{"zod":"^4.0.0-beta.20250412T085909","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_4.0.2_1744543076341_0.8624395885398861","host":"s3://npm-registry-packages-npm-production"}},"5.0.0":{"name":"@bram-dc/fastify-type-provider-zod","version":"5.0.0","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@5.0.0","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"ac6046dfdda9700aec88c4a2f95fb4c49824d3d3","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-5.0.0.tgz","fileCount":9,"integrity":"sha512-zSK+/29/GTGKAyuKbuAHhu7/UOS2XpdzcYl4Mkx88o3vrzIALN7bWMwbMVZHQLOh7eMt3evfQrD8t4kOfVTM3Q==","signatures":[{"sig":"MEQCIBlXuHNWJrXJGD+DtynrXjtCMqPd9wBFKLPwTLhSDEeiAiBSMCexzzGICmnwR9jgIBl9FyKmkYVrnW1ALW3WEjySxQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22860},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"bb03eeb7207b721fbe8c6d67b05dee56e9f957aa","scripts":{"lint":"biome check . && tsc --project tsconfig.lint.json --noEmit","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"biome check --write .","typescript":"tsd","test:coverage":"vitest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"_npmVersion":"10.9.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@fastify/error":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^4.0.0-beta.20250412T085909","vitest":"^2.1.2","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^20.16.10","oas-validator":"^5.0.8","@biomejs/biome":"^1.9.3","fastify-plugin":"^5.0.1","@fastify/swagger":"^9.1.0","@fastify/swagger-ui":"^5.0.1","@vitest/coverage-v8":"^2.1.2","@kibertoad/biome-config":"^1.2.1"},"peerDependencies":{"zod":"^4.0.0-beta.20250412T085909","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_5.0.0_1744543310625_0.4182325577236945","host":"s3://npm-registry-packages-npm-production"}},"5.0.2":{"name":"@bram-dc/fastify-type-provider-zod","version":"5.0.2","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@5.0.2","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"1822fb5775a99942d5665879ab3ec3fae948888e","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-5.0.2.tgz","fileCount":9,"integrity":"sha512-xABaNuG7ftkVJTxWIsL4OCys3Az4ShJfahOeoSxu2wLK5ofs4P++MWp7w/QV98M34eWx1lTTHqUxjettrBZ6Rw==","signatures":[{"sig":"MEQCIEvp3LVmWhbwPZaJcBzAjFb3Ej+WBE1bF8d2/RP8ZibsAiAv3yV0nCG8pVnc6Nrnm8NSjNxBUGG7+D+0iO+nJgX4ow==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23310},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"73789caa4c32c96f8cb272c3ca549bd192136ee5","scripts":{"lint":"biome check . && tsc --project tsconfig.lint.json --noEmit","test":"npm run build && npm run typescript && vitest","build":"tsc","lint:fix":"biome check --write .","typescript":"tsd","test:coverage":"vitest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"_npmVersion":"10.9.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@fastify/error":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.31.2","zod":"^4.0.0-beta.20250412T085909","vitest":"^2.1.2","fastify":"^5.0.0","typescript":"^5.6.2","@types/node":"^20.16.10","oas-validator":"^5.0.8","@biomejs/biome":"^1.9.3","fastify-plugin":"^5.0.1","@fastify/swagger":"^9.1.0","@fastify/swagger-ui":"^5.0.1","@vitest/coverage-v8":"^2.1.2","@kibertoad/biome-config":"^1.2.1"},"peerDependencies":{"zod":"^4.0.0-beta.20250412T085909","fastify":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_5.0.2_1744543887194_0.643420843890645","host":"s3://npm-registry-packages-npm-production"}},"5.0.3":{"name":"@bram-dc/fastify-type-provider-zod","version":"5.0.3","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@5.0.3","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"3bb0261aa1aa7449db97d1ed0c8b759c9da6525f","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-5.0.3.tgz","fileCount":38,"integrity":"sha512-WCTD6aBTMr323jcOkTgtuBQA++zczo9JcKQYR3qhiwlBv2l6+Zuhjjz9xRHi0ZW3nLUjjZQ0QsbmUnO2hFjYqA==","signatures":[{"sig":"MEQCIBFbz++vcLn95G+MpMDsWxhdezmnt+7nxwD/HKNmKWvBAiBL0d0eB2N/aeVA6F2RZRGTbgmEh+BiV2KnUxXBiGcWzA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116502},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/cjs/index.d.cts","module":"./dist/esm/index.js","exports":{"default":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"gitHead":"2a6e17412382d5768c38046a05d77e606a2040b0","scripts":{"lint":"biome check . && tsc --noEmit","build":"vite build","prepare":"npm run build","test:ci":"npm run build && npm run typescript && npm run test:coverage","lint:fix":"biome check --write .","typescript":"tsd","test:coverage":"vitest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"_npmVersion":"11.3.0","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@fastify/error":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.32.0","zod":"^4.0.5","vitest":"^3.2.4","fastify":"^5.4.0","typescript":"^5.8.3","@types/node":"^22.16.0","oas-validator":"^5.0.8","@biomejs/biome":"^2.0.6","fastify-plugin":"^5.0.1","@fastify/swagger":"^9.5.1","@fastify/swagger-ui":"^5.2.3","@vitest/coverage-v8":"^3.2.4","unplugin-isolated-decl":"^0.14.5","@kibertoad/biome-config":"^2.0.0"},"peerDependencies":{"zod":">=3.25.67","fastify":"^5.0.0","openapi-types":"^12.1.3","@fastify/swagger":">=9.5.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_5.0.3_1754017091698_0.061937476241862965","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"@bram-dc/fastify-type-provider-zod","version":"7.0.0","keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","_id":"@bram-dc/fastify-type-provider-zod@7.0.0","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"tsd":{"directory":"types"},"dist":{"shasum":"88b0f5d940992ea21f36df0fa5da7fec820aca98","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-7.0.0.tgz","fileCount":45,"integrity":"sha512-gYS26CeN3/QT9yQ0E3b6VzSEUYhyigolvfu2tCeFnU1LapZpt0NAr2f8eqbMUe7yv/t3luj/v8zxDyRCU0zSJw==","signatures":[{"sig":"MEUCIHTs9YWcqE/tXCcKwoOthpbpRwFsgdgwI3HykLWcdm3YAiEA5q2okSZJUC1Aq08Dd5kXL0hr75OzAooAAbE96fk77sY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117413},"main":"./dist/cjs/index.cjs","type":"module","types":"./dist/cjs/index.d.cts","module":"./dist/esm/index.js","exports":{"default":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"gitHead":"e747aa6d676bd92e4e33f8d7639603334cbe73fb","scripts":{"lint":"biome check . && tsc --noEmit","test":"vitest","build":"vite build","prepare":"npm run build","test:ci":"npm run build && npm run typescript && npm run test:coverage","lint:fix":"biome check --write .","typescript":"tsd","test:coverage":"vitest --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"_npmVersion":"11.6.2","description":"Zod Type Provider for Fastify@5","directories":{},"_nodeVersion":"25.3.0","dependencies":{"@fastify/error":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","zod":"^4.2.0","vitest":"^3.2.4","fastify":"^5.6.1","typescript":"^5.9.3","@types/node":"^24.9.1","oas-validator":"^5.0.8","@biomejs/biome":"^2.3.0","fastify-plugin":"^5.0.1","@fastify/swagger":"^9.5.2","@fastify/swagger-ui":"^5.2.3","@vitest/coverage-v8":"^3.2.4","@readme/openapi-parser":"^5.0.2","unplugin-isolated-decl":"^0.15.2","@kibertoad/biome-config":"^2.0.0"},"peerDependencies":{"zod":">=4.1.5","fastify":"^5.5.0","openapi-types":"^12.1.3","@fastify/swagger":">=9.5.1"},"_npmOperationalInternal":{"tmp":"tmp/fastify-type-provider-zod_7.0.0_1769372752396_0.2127823650277354","host":"s3://npm-registry-packages-npm-production"}},"7.0.1":{"name":"@bram-dc/fastify-type-provider-zod","version":"7.0.1","description":"Zod Type Provider for Fastify@5","type":"module","main":"./dist/cjs/index.cjs","module":"./dist/esm/index.js","types":"./dist/cjs/index.d.cts","exports":{"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"},"default":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"}},"scripts":{"build":"vite build","prepare":"npm run build","test":"vitest","test:coverage":"vitest --coverage","test:ci":"npm run build && npm run typescript && npm run test:coverage","lint":"biome check . && tsc --noEmit","lint:fix":"biome check --write .","typescript":"tsd","prepublishOnly":"npm run build"},"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"keywords":["fastify","zod","type","provider"],"author":{"name":"turkerd"},"license":"MIT","bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"homepage":"https://github.com/turkerdev/fastify-type-provider-zod","dependencies":{"@fastify/error":"^4.2.0"},"peerDependencies":{"@fastify/swagger":">=9.5.1","fastify":"^5.5.0","openapi-types":"^12.1.3","zod":">=4.1.5"},"devDependencies":{"@biomejs/biome":"^2.3.0","@fastify/swagger":"^9.5.2","@fastify/swagger-ui":"^5.2.3","@kibertoad/biome-config":"^2.0.0","@readme/openapi-parser":"^5.0.2","@types/node":"^24.9.1","@vitest/coverage-v8":"^3.2.4","fastify":"^5.6.1","fastify-plugin":"^5.0.1","oas-validator":"^5.0.8","tsd":"^0.33.0","typescript":"^5.9.3","unplugin-isolated-decl":"^0.15.2","vitest":"^3.2.4","zod":"^4.2.0"},"tsd":{"directory":"types"},"gitHead":"7c9a4c222e93e1909460f56e202cf181e6a510ca","_id":"@bram-dc/fastify-type-provider-zod@7.0.1","_nodeVersion":"25.3.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-TvWRrF0FAqLJlq7nZsxHwXzE6nm3tCvwwho96ZRBNJqwBQp3737W5Hl/ODtfwAl7Z3KhgNeoXQZzysBFm4N5pg==","shasum":"87ffb5f655065f9d01aaa829c1f4f2326098630d","tarball":"https://registry.npmjs.org/@bram-dc/fastify-type-provider-zod/-/fastify-type-provider-zod-7.0.1.tgz","fileCount":45,"unpackedSize":117202,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGne2ZuJ3j64DwOKG6bRJStm2RY5wfgBlBoVfQ3QZVKPAiEApzx8r+k7Mho5l7zYZrWC3IyLHGS4qeeR0Yf5tjif6es="}]},"_npmUser":{"name":"bram-dc","email":"bramdelcanho@gmail.com"},"directories":{},"maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fastify-type-provider-zod_7.0.1_1769374802030_0.582788864352785"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-20T13:35:03.404Z","modified":"2026-01-25T21:00:02.288Z","3.0.0":"2024-09-20T13:35:03.709Z","3.1.0":"2024-09-20T14:15:57.062Z","3.1.1":"2024-09-23T08:45:30.763Z","3.1.2":"2024-09-25T14:54:45.316Z","4.0.2":"2025-04-13T11:17:56.569Z","5.0.0":"2025-04-13T11:21:50.876Z","5.0.2":"2025-04-13T11:31:27.368Z","5.0.3":"2025-08-01T02:58:11.874Z","7.0.0":"2026-01-25T20:25:52.543Z","7.0.1":"2026-01-25T21:00:02.189Z"},"bugs":{"url":"https://github.com/turkerdev/fastify-type-provider-zod/issues"},"author":{"name":"turkerd"},"license":"MIT","homepage":"https://github.com/turkerdev/fastify-type-provider-zod","keywords":["fastify","zod","type","provider"],"repository":{"url":"git+https://github.com/turkerdev/fastify-type-provider-zod.git"},"description":"Zod Type Provider for Fastify@5","maintainers":[{"name":"bram-dc","email":"bramdelcanho@gmail.com"}],"readme":"# Fastify Type Provider Zod\n\n[![NPM Version](https://img.shields.io/npm/v/fastify-type-provider-zod.svg)](https://npmjs.org/package/fastify-type-provider-zod)\n[![NPM Downloads](https://img.shields.io/npm/dm/fastify-type-provider-zod.svg)](https://npmjs.org/package/fastify-type-provider-zod)\n[![Build Status](https://github.com//turkerdev/fastify-type-provider-zod/workflows/CI/badge.svg)](https://github.com//turkerdev/fastify-type-provider-zod/actions)\n\n## Zod compatibility\n\n| fastify-type-provider-zod | zod |\n|---------------------------|-------|\n| <=4.x | v3 |\n| >=5.x <7.x | v4 |\n| >=7.x | v4.2+ |\n\n> **Important (v7+)**\n>\n> Starting from **v7**, this library uses Zod’s `.encode()` / `.decode()` APIs introduced in **Zod 4.3**.\n> Because of this change, **response serialization is now based on `z.output<T>` instead of `z.input<T>`**.\n>\n> This means Fastify serializers always expect the **post-transformation output type** of your Zod schemas.\n\n## How to use?\n\n```ts\nimport type { ZodTypeProvider } from 'fastify-type-provider-zod';\nimport { serializerCompiler, validatorCompiler } from 'fastify-type-provider-zod';\nimport { z } from 'zod/v4';\n\nconst app = Fastify();\n\n// Add schema validator and serializer\napp.setValidatorCompiler(validatorCompiler);\napp.setSerializerCompiler(serializerCompiler);\n\napp.withTypeProvider<ZodTypeProvider>().route({\n  method: 'GET',\n  url: '/',\n  // Define your schema\n  schema: {\n    querystring: z.object({\n      name: z.string().min(4),\n    }),\n    response: {\n      200: z.string(),\n    },\n  },\n  handler: (req, res) => {\n    res.send(req.query.name);\n  },\n});\n\napp.listen({ port: 4949 });\n```\n\nYou can also pass options to the `serializerCompiler` function:\n\n```ts\ntype ZodSerializerCompilerOptions = {\n  replacer?: ReplacerFunction;\n};\n```\n\n```ts\nimport Fastify from 'fastify';\nimport { createSerializerCompiler, validatorCompiler } from 'fastify-type-provider-zod';\n\nconst app = Fastify();\n\nconst replacer = function (key, value) {\n  if (this[key] instanceof Date) {\n    return { _date: value.toISOString() };\n  }\n  return value;\n};\n\n// Create a custom serializer compiler\nconst customSerializerCompiler = createSerializerCompiler({ replacer });\n\n// Add schema validator and serializer\napp.setValidatorCompiler(validatorCompiler);\napp.setSerializerCompiler(customSerializerCompiler);\n\n// ...\n\napp.listen({ port: 4949 });\n```\n\n## How to use together with @fastify/swagger\n\n```ts\nimport fastify from 'fastify';\nimport fastifySwagger from '@fastify/swagger';\nimport fastifySwaggerUI from '@fastify/swagger-ui';\nimport { z } from 'zod/v4';\nimport type { ZodTypeProvider } from 'fastify-type-provider-zod';\nimport {\n  jsonSchemaTransform,\n  createJsonSchemaTransform,\n  serializerCompiler,\n  validatorCompiler,\n} from 'fastify-type-provider-zod';\n\nconst app = fastify();\napp.setValidatorCompiler(validatorCompiler);\napp.setSerializerCompiler(serializerCompiler);\n\napp.register(fastifySwagger, {\n  openapi: {\n    info: {\n      title: 'SampleApi',\n      description: 'Sample backend service',\n      version: '1.0.0',\n    },\n    servers: [],\n  },\n  transform: jsonSchemaTransform,\n\n  // You can also create transform with custom skiplist of endpoints that should not be included in the specification:\n  //\n  // transform: createJsonSchemaTransform({\n  //   skipList: [ '/documentation/static/*' ]\n  // })\n});\n\napp.register(fastifySwaggerUI, {\n  routePrefix: '/documentation',\n});\n\nconst LOGIN_SCHEMA = z.object({\n  username: z.string().max(32).describe('Some description for username'),\n  password: z.string().max(32),\n});\n\napp.after(() => {\n  app.withTypeProvider<ZodTypeProvider>().route({\n    method: 'POST',\n    url: '/login',\n    schema: { body: LOGIN_SCHEMA },\n    handler: (req, res) => {\n      res.send('ok');\n    },\n  });\n});\n\nasync function run() {\n  await app.ready();\n\n  await app.listen({\n    port: 4949,\n  });\n\n  console.log(`Documentation running at http://localhost:4949/documentation`);\n}\n\nrun();\n```\n\n## Customizing error responses\n\nYou can add custom handling of request and response validation errors to your fastify error handler like this:\n\n```ts\nimport { hasZodFastifySchemaValidationErrors } from 'fastify-type-provider-zod';\n\nfastifyApp.setErrorHandler((err, req, reply) => {\n  if (hasZodFastifySchemaValidationErrors(err)) {\n    return reply.code(400).send({\n      error: 'Response Validation Error',\n      message: \"Request doesn't match the schema\",\n      statusCode: 400,\n      details: {\n        issues: err.validation,\n        method: req.method,\n        url: req.url,\n      },\n    });\n  }\n\n  if (isResponseSerializationError(err)) {\n    return reply.code(500).send({\n      error: 'Internal Server Error',\n      message: \"Response doesn't match the schema\",\n      statusCode: 500,\n      details: {\n        issues: err.cause.issues,\n        method: err.method,\n        url: err.url,\n      },\n    });\n  }\n\n  // the rest of the error handler\n});\n```\n\n## How to create refs to the schemas?\n\nWhen provided, this package will automatically create refs using the `jsonSchemaTransformObject` function. You register the schemas with the global Zod registry and assign them an `id`. `fastifySwagger` will then create an OpenAPI document that references the schemas.\n\nThe following example creates a ref to the `User` schema and will include the `User` schema in the OpenAPI document.\n\n```ts\nimport fastifySwagger from '@fastify/swagger';\nimport fastifySwaggerUI from '@fastify/swagger-ui';\nimport fastify from 'fastify';\nimport { z } from 'zod/v4';\nimport type { ZodTypeProvider } from 'fastify-type-provider-zod';\nimport {\n  jsonSchemaTransformObject,\n  jsonSchemaTransform,\n  serializerCompiler,\n  validatorCompiler,\n} from 'fastify-type-provider-zod';\n\nconst USER_SCHEMA = z.object({\n  id: z.number().int().positive(),\n  name: z.string().describe('The name of the user'),\n});\n\nz.globalRegistry.add(USER_SCHEMA, { id: 'User' });\n\nconst app = fastify();\napp.setValidatorCompiler(validatorCompiler);\napp.setSerializerCompiler(serializerCompiler);\n\napp.register(fastifySwagger, {\n  openapi: {\n    info: {\n      title: 'SampleApi',\n      description: 'Sample backend service',\n      version: '1.0.0',\n    },\n    servers: [],\n  },\n  transform: jsonSchemaTransform,\n  transformObject: jsonSchemaTransformObject,\n});\n\napp.register(fastifySwaggerUI, {\n  routePrefix: '/documentation',\n});\n\napp.after(() => {\n  app.withTypeProvider<ZodTypeProvider>().route({\n    method: 'GET',\n    url: '/users',\n    schema: {\n      response: {\n        200: USER_SCHEMA.array(),\n      },\n    },\n    handler: (req, res) => {\n      res.send([]);\n    },\n  });\n});\n\nasync function run() {\n  await app.ready();\n\n  await app.listen({\n    port: 4949,\n  });\n\n  console.log(`Documentation running at http://localhost:4949/documentation`);\n}\n\nrun();\n```\n\n## How to create a plugin?\n\n```ts\nimport { z } from 'zod/v4';\nimport type { FastifyPluginAsyncZod } from 'fastify-type-provider-zod';\n\nconst plugin: FastifyPluginAsyncZod = async function (fastify, _opts) {\n  fastify.route({\n    method: 'GET',\n    url: '/',\n    // Define your schema\n    schema: {\n      querystring: z.object({\n        name: z.string().min(4),\n      }),\n      response: {\n        200: z.string(),\n      },\n    },\n    handler: (req, res) => {\n      res.send(req.query.name);\n    },\n  });\n};\n```\n\n## How to specify different OpenAPI targets\n\nYou can specify different JSON Schema targets for OpenAPI compatibility using the `createJsonSchemaTransform` function with the `zodToJsonConfig.target` option.\n\nBy default target \"openapi-3.0\" is used for documents with \"openapi\" field set to \"3.0.x\", and target \"draft-2020-12\" is used for documents with \"openapi\" field set to \"3.1.x\".\n\n### Usage\n\n```typescript\nimport { createJsonSchemaTransform } from \"fastify-type-provider-zod\";\n\n// For OpenAPI 3.0.x compatibility\nconst transform = createJsonSchemaTransform({\n  zodToJsonConfig: { target: \"openapi-3.0\" },\n});\n\n// For OpenAPI 3.1+\nconst transform = createJsonSchemaTransform({\n  zodToJsonConfig: { target: \"draft-2020-12\" },\n});\n```\n","readmeFilename":"README.md"}