Closed nenadfspartans closed 2 months ago
Your bug report is not complete. Please provide a minimum example with all necessary schemas. In your case the models are missing.
probably duplicate of #1700
@nenadfspartans Hello,
I have same problem. But I think that raised by TypeScript version and VSCODE. I was change TypeScript version 5.5.2
> 5.4.5
, This problem not occured.
Can someone tell me how I can fix or walkaround this issue in TypeScript 5.5.x?
I am on 5.4.5 and have this problem.
The OP's problem is not a Typescript issue. The generated type is wrong. If anyone has this problem, please post an example for reproduction.
Description
This was working before ver 7 and it creates working code for my usecase.
This is what creates problem for me:
This is request body that can accept one of these options.
Here we define descriminator, redocly populates last 2 rows of mapping, it was not problem with 6.7.0
Generated code with v6.7.0, perfectly fine for my needs.
Generated code with v7.0.0
Thanks!
Checklist
npx @redocly/cli@latest lint
)