Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to support snake case as a value form #8302

Open
scott-brady opened this issue Aug 19, 2024 · 0 comments
Open

Request to support snake case as a value form #8302

scott-brady opened this issue Aug 19, 2024 · 0 comments

Comments

@scott-brady
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant