Skip to content

Request to support snake case as a value form #8302

Open

Description

Is your feature request related to a problem? Please describe.

I'm working on a template for an ASP.NET gRPC project. The template includes ".proto" files with package names using snake_case, such as package my_greeter. I would like to be able to replace this with another symbol when generating a project using dotnet new.

I can see that Value Forms might be able to help with my use case, but it does not currently support snake case. Please consider my request to add snake case as a value form.

Describe the solution you'd like.

Add a new Value Form to support snake_case, for instance:

snakeCase - Converts the value to snake case using the casing rules of the invariant culture.

"forms": {
    "snake": {
      "identifier": "snakeCase"
    }
}

I believe this could be implemented in a similar way to kebabCase as per KebabCaseValueFormFactory.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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