Ability to customize and/or opt-out of pluralization
enhancement
It seems pluralization is applied unconditionally in FormatResourceName and it cannot be controlled because it's not a concern of JsonNamingPolicy.
I see pluralization is done with Humanizer but trying to customize it seems ineffective, i.e:
```c#
CultureInfo.CurrentCulture = new CultureInfo("da-DK");
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.CurrentCulture;
```
But I would rather just like to be able to disable pluralization.
Would it make sense to introduce an option for this at JsonApiOptions level fx. PluralizeTypeNames with default true?
关闭于 2025-11-15 6 条评论