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
Of course it is technically possible to generate such a function, but it needs to provide a significant benefit. We purposefully generate as little as possible because it keeps the API easy to understand, maintain, and support in other packages like @bufbuild/protoplugin.
My first questions would be:
What's the advantage of createUser({}) over create(UserSchema, {}) ? Fewer characters is nice, but what about all other functions tied to a schema, for example toJson, mergeFromBinary, clone, and future functions (e.g. merge)?
Why take Omit<T, "$typeName" | "$unknown"> as the initializer (unlike create), and require the user to provide values for proto2 optionals?
would it be possible to include the autogeneration of the create function for each message?
e.g. for a
We would end up with:
Could we include the following in the code generation?
The text was updated successfully, but these errors were encountered: