You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like typed-openapi for its headless usage.
I would like to request a feature to output the request format for each endpoint, similar to what openapi-zod-client provides.
I would like to have a similar feature in typed-openapi that includes the requestFormat property.
For example, the output could look like this:
exportconstpost_Token_api_token_post={method: z.literal("POST"),path: z.literal("/api/token"),requestFormat: z.literal("form-url"),// This is what I want!parameters: z.object({body: Body_token_api_token_post,}),response: TokenOut,};
If you agree, I would be happy to create a PR.
Please let me know your thoughts.
The text was updated successfully, but these errors were encountered:
Hello,
I really like
typed-openapi
for its headless usage.I would like to request a feature to output the request format for each endpoint, similar to what
openapi-zod-client
provides.For example, given this OpenAPI schema:
When output by
openapi-zod-client
, it generates an endpoint like this:I would like to have a similar feature in
typed-openapi
that includes therequestFormat
property.For example, the output could look like this:
If you agree, I would be happy to create a PR.
Please let me know your thoughts.
The text was updated successfully, but these errors were encountered: