contentful / dotnet-models-creator-cli

A dotnet CLI to automatically create strongly typed models.
MIT License
3 stars 3 forks source link

File name should match model name #1

Open gmusick opened 4 years ago

gmusick commented 4 years ago

I have a content type that has spaces in its name and, while the model created doesn't have spaces in its name, the actual file name does. So, for example, if I have a content type called Foo Bar in the Contentful UI, the model generated is FooBar, but the file name for that model is Foo Bar.cs. It seems like the file name should match the name of the model.

Roblinde commented 4 years ago

Hi @gmusick thanks for the suggestion. I agree. The file name should match the class name, I'll have a look when I get a chance.

gmusick commented 4 years ago

@Roblinde great! I ended up having to make the change myself and so I opened #2 for it.

ctomichael commented 3 years ago

Hi @Roblinde, any chance you can review this PR? The spaces in the filename is bugging me too!

Roblinde commented 3 years ago

@district-michael I kinda forgot about this, but yes, I'll see what I can do. I currently do not have merge privileges, but I'll look into it.