Something like BodyPart #752
huanghui1998hhh
started this conversation in
Ideas
Replies: 1 comment
-
@trevorwang Any suggestions for this feature? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a branch implemented a feature that allow use
@BodyPart
to add a part parameter to request body. It like this:And it will generate this:
This avoids polluting the original model with additional fields or add new models.
By the way, it allows combining fields from multiple models as the request body by
BodyPart.expand
. If expands is true, when a model is passed in, its fields will be flattened to the same level as the Body.Since my forked version is outdated and has diverged from the master branch, I'm currently encountering some issues while upgrading dependencies. If you think this feature make sense, I will reimplement it based on the current master branch and submit a PR. Or any other suggestions for this feature, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions