Run up to 0.15.0 #186
Replies: 1 comment 2 replies
-
Hey Arlyon, great work as always. So, speaking of the rework on the generated code... The biggest change that we will need to make is that currently the "request" API's are tied to specific structs with methods instead of functions. We probably should break that. Structs that are specified in the openapi spec should be standalone, especially when they don't take that object as a paremeter. Then we need to decide where we are going to put the new "request" modules. A natural grouping would be by just how Stripe does them (example: "Account" API gets its own "Account" module). Unfortunately, the way the current code is written is that each file is generated one at a time...and I think that's okay. But it leaves us with a choice. The only question is...is it going to be difficult to have "Account" be built with these functions, or will it be easier to have a separate file that extends Account like we do manual extensions now. I don't know the answer. With Rust we can do either...so I think it's on your preference. However, they won't be easy to switch once we implement one or the other so we need to discuss this before we do it. Hopefully this is clear. I'm mostly just trying to start a conversation before I go off and try to implement this because I can do it multiple ways and all ways are equal, but they all have pros and cons and I'd hate to implement one way only to be requested to re implement the other way. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am planning on releasing 0.14 soon so I thought I'd write a quick 'state of the union'.
Goals completed in 0.14
card
to the api! 🥳Default
across the codebase: we added default everywhere! Derive Default on structs #152The library is in a great place. In addition to this we have refactored the codegen to be structured more cleanly, a refactor that opens up some new directions for us.
Goals for 0.15
Beta Was this translation helpful? Give feedback.
All reactions