Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix php enum default value initialization #10273

Merged

Conversation

etremblay
Copy link
Contributor

Fix #10244

I manually tested the output of generation but was'nt able to validate it against the petstore sample. I did not find any enum with a default value used as a model property in the petstore.

generate-samples.sh and export_docs_generators.sh did not produce any code diff.

@wing328
Copy link
Member

wing328 commented Aug 29, 2021

cc @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) ❤️, @ybelenko (2018/07), @renepardon (2018/12)

@wing328 wing328 added this to the 5.3.0 milestone Aug 29, 2021
@wing328 wing328 changed the title Issue #10244 fix php enum default value initialization Fix php enum default value initialization Aug 29, 2021
@etremblay
Copy link
Contributor Author

I'm not that familiar with the project and there is a lot of stuff going on, but the build issues don't seems related to this pr changes.

@wing328
Copy link
Member

wing328 commented Aug 31, 2021

Agreed it's not related. If not further feedback/question from anyone, I'll merge it later this week.

@wing328 wing328 merged commit f9fa62a into OpenAPITools:master Sep 2, 2021
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.

[BUG] PHP generator produce a invalid php file when shema have an enum with default value.
2 participants