diff --git a/CHANGELOG.md b/CHANGELOG.md index 184394a048..40d175922f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs b/src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs index b6f6204eaa..d9e864e637 100644 --- a/src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs +++ b/src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs @@ -43,6 +43,7 @@ public class JavaReservedNamesProvider : IReservedNamesProvider "notify", "notifyall", "null", + "object", "package", "private", "protected", diff --git a/src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs b/src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs index 1e2741b56a..ac8a3bfc64 100644 --- a/src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs +++ b/src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs @@ -48,6 +48,7 @@ public class PhpReservedNamesProvider : IReservedNamesProvider "list", "namespace", "new", + "object", "or", "print", "private",