Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

POC for cozy API validation, typing, and OpenAPI/swagger schema generation with Zod and Express

NotificationsYou must be signed in to change notification settings

lzehrung/zod-express-openapi-routes

Repository files navigation

  • Find an ergonomic way (minimize boilerplate and code duplication) to get typed, zod-validated express routes and an OpenAPIschema at the same time
  • Minimize code duplication and boilerplate between express routes, request parameter validation, and OpenAPI definitions

Highlights

Run the example

Dependencies

  • @anatine/zod-openapi: generates request parameter OpenAPI definitions from zod schemas
  • openapi3-ts: used to define OpenAPI schema in TypeScript
  • swagger-ui-express: serves the OpenAPI documentation
  • zod: used to define request parameter validation schemas

Limitations

  • file upload routes must be documented manually
  • haven't tested nested routers / routes
  • not extensively tested

About

POC for cozy API validation, typing, and OpenAPI/swagger schema generation with Zod and Express

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp