Openapi

Generate OpenAPI 3.1 spec from a tRPC router with @trpc/openapi CLI or programmatic API. Generate typed REST client with @hey-api/openapi-ts and configureTRPCHeyApiClient(). Configure transformers (superjson, EJSON) for generated clients. Alpha status.

trpc 828b6ca 8.5 KB Updated

File contents

trpc/trpc/tree/main/packages/openapi/skills/openapi commit 828b6caeb8

Frequently asked questions

npx skillmds add trpc/openapi