Why
I need to generate required/optional fields based on convention not based on attribute on protobuf field
Suggested solution
would be nice to have a possibility to import plugin in a separate js file and provide a function which determines whether to generate field as required or optional.
Basically expose factory function of the plugin to the userland, so we can create our own plugins adjusted to our own needs (like changing whether property is optional or required based on field attributes or comments in proto files)