Skip to content

Provide a way to customize how a field is determined to be optional or required #1229

@stalniy

Description

@stalniy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions