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.59k stars 6.29k forks source link

avoid setting debug property if not needed #18872

Closed ZeeD closed 2 weeks ago

ZeeD commented 4 weeks ago

this pr add an optional boolean flag to enable / disable / keep as it is the debug property fixes #18871

@cbornet @tomplus @krjakbrjak @fa0311 @multani

PR checklist

wing328 commented 4 weeks ago

thanks for the PR. please follow step 3 to update the samples so that the CI can verify the change.

ZeeD commented 4 weeks ago

updated the samples

ZeeD commented 3 weeks ago

Hi. may someone have a look at the changes?

wing328 commented 3 weeks ago

can you please review the test failures when you've time?

ZeeD commented 3 weeks ago

Oh, it was the fact that bool | None was not supported in python 3.7. switched to Optional[bool]

wing328 commented 3 weeks ago

that's ok.

all tests passed. thanks again for the PR.

if no one has further feedback on this PR, i'll merge it later this week.

ZeeD commented 2 weeks ago

Updated the pr to add explicit check the behavior on the various values you can pass to the constructor

ZeeD commented 2 weeks ago

I was just wondering if there is anything else to do on my side.

multani commented 2 weeks ago

@wing328 can you check this pull request? It's good to merge for me :+1:

wing328 commented 2 weeks ago

@multani thanks for reviewing the change

@ZeeD thanks for the PR

will merge after all tests pass

ZeeD commented 2 weeks ago

Thanks!