Skip to content

[PHP] Remove model prefix/suffix from inline enum var names#4489

Merged
ackintosh merged 2 commits intoOpenAPITools:masterfrom
hinrik:php_no_model_suffix_in_enum_var
Feb 21, 2020
Merged

[PHP] Remove model prefix/suffix from inline enum var names#4489
ackintosh merged 2 commits intoOpenAPITools:masterfrom
hinrik:php_no_model_suffix_in_enum_var

Conversation

@hinrik
Copy link
Copy Markdown
Contributor

@hinrik hinrik commented Nov 14, 2019

This resolves issue #4403.

On a model Foo with an inline enum Bar which has a possible string
value baz. we should generate a FooDTO::BAR_BAZ constant, not
FooDTO::BAR_DTO_BAZ.

This resolves issue OpenAPITools#4403.

On a model `Foo` with an inline enum `Bar` which has a possible string
value `baz`. we should generate a `FooDTO::BAR_BAZ` constant, not
`FooDTO::BAR_DTO_BAZ`.
@hinrik
Copy link
Copy Markdown
Contributor Author

hinrik commented Nov 15, 2019

Copy link
Copy Markdown
Contributor

@ackintosh ackintosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! LGTM. 😃

@ackintosh ackintosh merged commit 972ba18 into OpenAPITools:master Feb 21, 2020
@ackintosh ackintosh added this to the 4.3.0 milestone Feb 21, 2020
@hinrik hinrik deleted the php_no_model_suffix_in_enum_var branch February 21, 2020 08:11
MikailBag pushed a commit to MikailBag/openapi-generator that referenced this pull request Mar 23, 2020
…ools#4489)

* [PHP] Remove model prefix/suffix from inline enum var names

This resolves issue OpenAPITools#4403.

On a model `Foo` with an inline enum `Bar` which has a possible string
value `baz`. we should generate a `FooDTO::BAR_BAZ` constant, not
`FooDTO::BAR_DTO_BAZ`.

* Empty commit for another CI run
@wing328
Copy link
Copy Markdown
Member

wing328 commented Mar 27, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants