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
If oas file has lacked schema property about media type, RequestBody type omits application/json type. This cause build error because Param type generates reference to it. See followed by an example.
requestBody:
description: The request body is currently not used.
required: true
content:
application/json:
example: '{}'
I thought it's loose schema definition, but OAS doesn't require it must be specified.
Steps To Reproduce
If oas file has lacked
schema
property about media type, RequestBody type omits application/json type. This cause build error because Param type generates reference to it. See followed by an example.I thought it's loose schema definition, but OAS doesn't require it must be specified.
Run
bun i && bun gen.ts && npx tsc --noEmit ./src/client.ts
in https://github.com/tkow/cloudflare-ts-client.The current behavior
Params type generate requestBody refers to RequstBodyType,
but empty RequestBody type is generated.
The expected behavior
It may be suitable that it generates
The text was updated successfully, but these errors were encountered: