ogen icon indicating copy to clipboard operation
ogen copied to clipboard

WIP: capability to generate non Opt* struct for parameters with default value

Open Liooo opened this issue 1 year ago • 1 comments

@tdakkota @ernado @shadowspore

https://github.com/ogen-go/ogen/issues/966

I saw some reactions on the issue and I've got some time now so diving into this. This PR includes only a minimal draft changes to discuss the implementation strategy, once the direction is consolidated I'm happy to do the rest of the work.

Just want a quick feedback at this point about if it's looking good or there's any other better ways. Honestly, haven't given much thought nor read the whole codebase yet so there could be some limitation in this strategy. Naming of the variables and types are also draft, will pick better ones if there's any along the way.

Liooo avatar Mar 19 '24 09:03 Liooo

@tdakkota PTAL We need to decide how we going to implement this feature

ernado avatar Apr 04 '24 11:04 ernado