OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.51k stars 6.27k forks source link

[typescript-fetch] Fix API-generation of referenced enums for multipart/form-data #19016

Open Masamas opened 3 days ago

Masamas commented 3 days ago

Adds isEnumRef to the condition because it does not match the isPrimitiveType condition if the enum definition is separated. isEnumRef was also added to the typescript-fetch specific ExtendedCodegenParameter and ExtendedCodegenProperty so that it can be used in templates.

Fixes #11613

@TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @topce @akehir @petejohansonxo @amakhrov @davidgamero @mkusaka

PR checklist