You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like I'm missing the proper way to write an app for the code, generated by this plugin.
Imagine a message with like 30 fields. So it's gonna be a class with 60 methods now, and it doesn't look like there are some shortcuts. I only found the <MessageType>.AsObject type and toObject() utility which come in handy when you work with results.
However, to create a message, I write a code like:
`- i.e. self-repeating, not nice, hard to maintain etc. For example, with OpenAPI I wouldn't need just any of that.
I would gladly write a few wrappers, but it doesn't seem to be possible as well, because there are no prop lists to iterate over.
So how do you folks do it? Or are you really typing all this?
The text was updated successfully, but these errors were encountered:
Hi everybody.
It seems like I'm missing the proper way to write an app for the code, generated by this plugin.
Imagine a message with like 30 fields. So it's gonna be a class with 60 methods now, and it doesn't look like there are some shortcuts. I only found the
<MessageType>.AsObject
type andtoObject()
utility which come in handy when you work with results.However, to create a message, I write a code like:
`- i.e. self-repeating, not nice, hard to maintain etc. For example, with OpenAPI I wouldn't need just any of that.
I would gladly write a few wrappers, but it doesn't seem to be possible as well, because there are no prop lists to iterate over.
So how do you folks do it? Or are you really typing all this?
The text was updated successfully, but these errors were encountered: