hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client

Home Page:https://heyapi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow inlining types in services signature instead of reference to $OpenApiTs

rubenfiszel opened this issue · comments

Description

Hi,

There is nothing wrong with using $OpenApiTs per se but it doesn't work well with both vscode/monaco signature hints and doc generator. An example of this is the doc generated by jsr:

image

I'd much rather have the types inlined and would prefer to have an option to inline the types directly:

$OpenApiTs["/w/{workspace}/flows/create"]["post"]["req"]) 

vs

{ workspace: string, requestBody: { ... } }

Yep. Duplicate of #410