From 03cf7b0896bfd4b4b72f88c0124ca41f8b9af6db Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Wed, 5 Apr 2023 16:33:06 +0300 Subject: [PATCH] fix by id dot notation --- .../LanguageGenerators/PythonGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs b/CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs index ba2212a6a..bb7588041 100644 --- a/CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs +++ b/CodeSnippetsReflection.OpenAPI/LanguageGenerators/PythonGenerator.cs @@ -349,7 +349,7 @@ private static string GetFluentApiPath(IEnumerable nodes) { var dot = y.StartsWith("by_id") ? string.Empty : "_"; return $"{x.Trim('$')}{dot}{y.Trim('$')}"; - }).Replace("()ById(", "by_id(") + }).Replace("()ById(", "_by_id(") .Replace("()().", "()."); } }