Skip to content

Commit

Permalink
Merge pull request #3613 from microsoft/python/bugfix-path-parameters…
Browse files Browse the repository at this point in the history
…-naming

Python/bugfix path parameters naming
  • Loading branch information
samwelkanda authored Nov 1, 2023
2 parents 78a1aa5 + a6728c2 commit 32fbdce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Set serialization name for path parameters for use with url templating in Python. [#3612](https://github.com/microsoft/kiota/issues/3612)
- Include the type which a promise resolves to in PHPDocs for PHP. [#3542](https://github.com/microsoft/kiota/issues/3542)
- Added null check for null content type instances when getting deprecation information [#3588](https://github.com/microsoft/kiota/issues/3588)
- Aligns header management in Python with other languages. [#3430](https://github.com/microsoft/kiota/issues/3430)
Expand Down
2 changes: 2 additions & 0 deletions src/Kiota.Builder/Refiners/PythonRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ private static void CorrectCommonNames(CodeElement currentElement)

foreach (var param in m.Parameters)
{
if (param.SerializationName != null)
param.SerializationName = param.Name;
param.Name = param.Name.ToFirstCharacterLowerCase().ToSnakeCase();
}
if (parentClassM.IsOfKind(CodeClassKind.Model))
Expand Down

0 comments on commit 32fbdce

Please sign in to comment.