diff --git a/src/Tochka.JsonRpc.Server/Binding/JsonRpcParameterModelConvention.cs b/src/Tochka.JsonRpc.Server/Binding/JsonRpcParameterModelConvention.cs index a5f0d37..5996bcc 100644 --- a/src/Tochka.JsonRpc.Server/Binding/JsonRpcParameterModelConvention.cs +++ b/src/Tochka.JsonRpc.Server/Binding/JsonRpcParameterModelConvention.cs @@ -44,7 +44,7 @@ public void Apply(ParameterModel parameter) foreach (var actionSelector in parameter.Action.Selectors) { var jsonSerializerOptions = ServerUtils.GetDataJsonSerializerOptions(actionSelector.EndpointMetadata, options, serializerOptionsProviders); - var propertyName = jsonSerializerOptions.PropertyNamingPolicy!.ConvertName(parameter.ParameterName); + var propertyName = jsonSerializerOptions.ConvertName(parameter.ParameterName); var parametersMetadata = actionSelector.EndpointMetadata.Get(); if (parametersMetadata == null) { diff --git a/src/Tochka.JsonRpc.Server/Routing/JsonRpcActionModelConvention.cs b/src/Tochka.JsonRpc.Server/Routing/JsonRpcActionModelConvention.cs index 62ea8c6..e821473 100644 --- a/src/Tochka.JsonRpc.Server/Routing/JsonRpcActionModelConvention.cs +++ b/src/Tochka.JsonRpc.Server/Routing/JsonRpcActionModelConvention.cs @@ -75,8 +75,8 @@ private string GetMethodName(ActionModel action, SelectorModel selector) var methodStyleAttribute = selector.EndpointMetadata.Get(); var methodStyle = methodStyleAttribute?.MethodStyle ?? options.DefaultMethodStyle; - var controllerName = jsonSerializerOptions.PropertyNamingPolicy!.ConvertName(action.Controller.ControllerName); - var actionName = jsonSerializerOptions.PropertyNamingPolicy.ConvertName(action.ActionName); + var controllerName = jsonSerializerOptions.ConvertName(action.Controller.ControllerName); + var actionName = jsonSerializerOptions.ConvertName(action.ActionName); return methodStyle switch { JsonRpcMethodStyle.ControllerAndAction => $"{controllerName}{JsonRpcConstants.ControllerMethodSeparator}{actionName}",