oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Fix external reference propagation

Open ShouheiNishi opened this issue 2 years ago • 10 comments

Fix for #1202

ShouheiNishi avatar Aug 23 '23 06:08 ShouheiNishi

This PR fixes an issue which we also face. @jamietanna what do you think about merging it?

bartsmykla avatar Sep 28 '23 09:09 bartsmykla

Thanks for this - we'll try and get it into the v1.16.0 release, which should be some time in October - things are a bit busy over the next few weeks so not sure how much of my free time I'll be able to give to oapi-codegen - hoping that at some point I can have enough GitHub sponsors to be able to dedicate a full day a week to Open Source!

jamietanna avatar Sep 28 '23 09:09 jamietanna

@ShouheiNishi @bartsmykla mind checking if the changes in https://github.com/deepmap/oapi-codegen/pull/1389 have solved this for you?

jamietanna avatar Jan 25 '24 12:01 jamietanna

@ShouheiNishi @bartsmykla mind checking if the changes in #1389 have solved this for you?

No. We plan to summarize the problems that exist after the fix.

ShouheiNishi avatar Jan 26 '24 06:01 ShouheiNishi

To confirm, the fix from #1389 hasn't solved all the external reference issues you're affected by?

jamietanna avatar Jan 26 '24 06:01 jamietanna

To confirm, the fix from #1389 hasn't solved all the external reference issues you're affected by?

Yes.

ShouheiNishi avatar Jan 26 '24 08:01 ShouheiNishi

@ShouheiNishi @bartsmykla mind checking if the changes in #1389 have solved this for you?

Unfortunately I cannot test it now as we reworked our flow to overcome this issue (we are cloning external dependencies and combining them in a one file then referencing int locally), but thank you for looking into this!

bartsmykla avatar Jan 26 '24 08:01 bartsmykla

What about https://github.com/deepmap/oapi-codegen/pull/1253 that had this issue as a requirement?

emilien-puget avatar Jan 26 '24 08:01 emilien-puget

What about #1253 that had this issue as a requirement?

PR#1253 adds type conversion. In some of the test codes, the process of getting the destination type does not work correctly due to issue #1202, so some test codes will fail.

ShouheiNishi avatar Jan 26 '24 08:01 ShouheiNishi

To confirm, the fix from #1389 hasn't solved all the external reference issues you're affected by?

At least there are still issues like the test cases in this pull request.

ShouheiNishi avatar Jan 29 '24 03:01 ShouheiNishi