From 455bcb69e05598e4222580574fd1d0a5b19a0317 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Mon, 15 Apr 2024 00:24:44 +0300 Subject: [PATCH 1/2] Added object as reserved name to Java and php reserved names provider class --- src/Kiota.Builder/Refiners/JavaReservedNamesProvider.cs | 1 + src/Kiota.Builder/Refiners/PhpReservedNamesProvider.cs | 1 + 2 files changed, 2 insertions(+) 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", From 8d305169e735e5eb7770fc8c014f3a2c0941adc9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Mon, 15 Apr 2024 12:27:34 +0300 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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