Skip to content

Commit

Permalink
Merge pull request #4490 from timayabi2020/timayabi2020/updatereserve…
Browse files Browse the repository at this point in the history
…dnameproviders

Adds ``object`` to the list of reserved names
  • Loading branch information
timayabi2020 authored Apr 15, 2024
2 parents eaf0262 + 8d30516 commit 290362e
Show file tree
Hide file tree
Showing 3 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 @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Changed URI template generation to reuse templates when required templates are absent across operations.
- Updated reserved name providers for Java and Php so that "object" can be escaped.

## [1.13.0] - 2024-04-04

Expand Down
1 change: 1 addition & 0 deletions src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class JavaReservedNamesProvider : IReservedNamesProvider
"notify",
"notifyall",
"null",
"object",
"package",
"private",
"protected",
Expand Down
1 change: 1 addition & 0 deletions src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class PhpReservedNamesProvider : IReservedNamesProvider
"list",
"namespace",
"new",
"object",
"or",
"print",
"private",
Expand Down

0 comments on commit 290362e

Please sign in to comment.