express-zod-api:Express Zod API

时间:2021-04-14 05:43:07
【文件属性】:
文件名称:express-zod-api:Express Zod API
文件大小:111KB
文件格式:ZIP
更新时间:2021-04-14 05:43:07
TypeScript Express Zod API 在几分钟之内即可通过I / O架构验证和自定义中间件启动API服务器。 已知的问题端点输出的多余属性检查 科技类 打字稿优先 模式验证-Zod 3.x Web服务器-Express.js。 记录器-温斯顿。 Swagger-OpenAPI 3.x 安装 yarn install express-zod-api 将以下选项添加到您的tsconfig.json文件中,以使其按预期工作: { " compilerOptions " : { " noImplicitAny " : true , " strictNullChecks " : true } } 基本用法 ./example完整示例。 您可以克隆回购协议并运行yarn start来进行检查。 设置配置 const config : ConfigType = {
【文件预览】:
express-zod-api-master
----.eslintrc.json(915B)
----.gitignore(40B)
----package.json(2KB)
----src()
--------endpoints-factory.ts(1KB)
--------middleware.ts(683B)
--------endpoint.ts(5KB)
--------result-handler.ts(1KB)
--------server.ts(1KB)
--------logger.ts(2KB)
--------config-type.ts(594B)
--------index.ts(624B)
--------helpers.ts(892B)
--------open-api.ts(5KB)
--------routing.ts(1KB)
----jest.config.js(69B)
----tsconfig.json(304B)
----.github()
--------workflows()
----README.md(6KB)
----tests()
--------unit()
--------system()
----example()
--------factories.ts(249B)
--------example.swagger.yaml(2KB)
--------middlewares.ts(717B)
--------v1()
--------index.ts(274B)
--------generate-open-api-schema.ts(246B)
--------routing.ts(118B)
----.npmignore(83B)
----.husky()
--------.gitignore(2B)
--------pre-commit(57B)
----yarn.lock(201KB)

网友评论