Closed ksvirkou-hubspot closed 1 week ago
Can I create a PR for returning back to union types?
Can I create sample app for testing oneOf
?
@TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @topce @akehir @petejohansonxo @amakhrov @davidgamero @mkusaka
Description
Typescript generator generates new model for oneOf
PublicActionDefinitionInputFieldDependenciesInner
. It impossible to send proper request to API using this model.PublicActionDefinitionInputFieldDependenciesInner
model doesn't contain a field for choosing oneOf's models. The generator version 5.4.0 uses union types:PublicSingleFieldDependency | PublicConditionalSingleFieldDependency
. Can I create a PR for returning back to union types? Can I create sample app for testing it?Output
PublicActionDefinitionInputFieldDependenciesInner
model:In v 5.4.0
openapi-generator version
6.0.0 or higher
OpenAPI declaration file content or url
Generation Details
generate -i *.json -g typescript -o /dir --skip-validate-spec --additional-properties usePromises=true,supportsES6=true,platform=node
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/11679
Suggest a fix
Can I create a PR for returning back to union types? Can I create sample app for testing oneOf?