An empty object as the request body generates an invalid TS definition #1174
Labels
bug
Something isn't working
good first issue
Straightforward problem, solvable for first-time contributors without deep knowledge of the project
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
An empty object as the request body generates an invalid TS definitionL
openapi-typescript
6.2.8
18.6.0
Reproduction
Example YAML:
The problem can be mitigated by removing
requestBody
completely in this case, but still it shouldn't generate invalid TS syntax.Expected result
(in case it’s not obvious)
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: