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
This is not easy to do because we use the schemaName for the type append the key(if the type is object). If that combination is already(not unique enough) there because another type has the same name, we add a number to make it unique. Not sure what else we can do there or what we can use coming from the OpenAPI/Swagger file.
What version of
kubb
is running?kubb/2.7.0 win32-x64 node-v18.16.0
What platform is your computer?
win
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)n/a (bare kubb)
What steps can reproduce the bug?
kubb.config.ts:
Modified
examples/typescript/petStore.yaml
from kubb repo, as-per attached patch.Resulting
models.ts
declaresOrderType
twice:gen_breaks_when_descriptor_contains_enum_whose_name_equals_the_qualified_name_of_a_schema_.patch
How often does this bug happen?
Every time
What is the expected behavior?
No response
Swagger/OpenAPI file?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: