OneOf type generating Record<string,never>
despite all types defined
#1277
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
I have the following definition for an object:
However, the generated type is:
I cannot figure out why it's generating
Record<string, never>
here. This is a pretty straightforwardoneOf
, and the options are being generated correctly otherwise.openapi-typescript
6.4.0
19.0.0
Linux Pop!_OS 22.04 LTS
Reproduction
Run the above through openapi-typescript generator
Expected result
There should be no
Record<string,never>
as part of this definition.Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: