Questions tagged [snakecase]
4 questions
2
votes
1 answer
Forcing SnakeCaseNamingStrategy doesn't work in ASP.NET MVC
I'm trying to force both serialization and deserialization to use SnakeCaseNamingStrategy but no luck.
Here is what I have used in Global.asax.cs:
protected void Application_Start() {
AreaRegistration.RegisterAllAreas();
…

Hooman Limouee
- 1,143
- 2
- 21
- 43
0
votes
0 answers
Angular Openapi-generator-cli with useSingleRequestParameter don't use snake_case
i'm using this cli to generate my services in angular
openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o src/app/core/api/v1 --additional-properties=useSingleRequestParameter=true,modelPropertyNaming=snake_case
i have a model…

oscurodrago
- 788
- 1
- 8
- 18
-1
votes
2 answers
trying to make snakecase program
so i have to make an snakecase program
camelcase = input("camelCase: ")
snakecase = camelcase.lower()
for c in camelcase:
if c.isupper():
snakecase += "_"
snakecase += c.lower()
print(snakecase)
with the for im going…

omen
- 9
- 2
-1
votes
2 answers
Convert a String to customised version of Snake case and capitalise first character before every underscore in Java
Suppose I have string like FOO_BAR or foo_bar or Foo_Bar, I want to convert it to customised snake case like below
FOO_BAR -> Foo Bar
`foo_bar` -> `Foo Bar`
`Foo_Bar` -> `Foo Bar`
As you can notice all three inputs provide the same output,…

Amit
- 30,756
- 6
- 57
- 88