From 7875a3b9959bd43289da8fc206285b910167e3b7 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 13 Feb 2023 09:20:33 -0500 Subject: [PATCH] - fixes a bug where search would fail because of a parsing issue Signed-off-by: Vincent Biret --- CHANGELOG.md | 7 +++++++ src/Kiota.Builder/Kiota.Builder.csproj | 2 +- .../GitHub/GitHubClient/Models/RepoSearchResultItem.cs | 6 +++--- src/kiota/kiota.csproj | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017d693fe1..79d5a50cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +### Changed + +## [0.11.1] - 2023-02-13 + +### Added + - Added support for multi-valued headers in Python. [#2051](https://github.com/microsoft/kiota/issues/2051) - Added `getResponseStatusCode` to PHP exceptions reserved names provider. [#2243](https://github.com/microsoft/kiota/issues/2243) ### Changed +- Fixed a bug where search would fail because of a parsing issue. [#2290](https://github.com/microsoft/kiota/issues/2290) - Fixed a bug where Ruby namespaces would fail to load with Rails. - Fixed a bug where errors/exceptions could override native exception type symbols in Python. [#2257](https://github.com/microsoft/kiota/issues/2257) - Fixed a bug where descriptions with a path segment matching an HTTP verb would fail to generate. [#2231](https://github.com/microsoft/kiota/issues/2231) diff --git a/src/Kiota.Builder/Kiota.Builder.csproj b/src/Kiota.Builder/Kiota.Builder.csproj index cfa10395e7..5103046442 100644 --- a/src/Kiota.Builder/Kiota.Builder.csproj +++ b/src/Kiota.Builder/Kiota.Builder.csproj @@ -14,7 +14,7 @@ Microsoft.OpenApi.Kiota.Builder Microsoft.OpenApi.Kiota.Builder ./nupkg - 0.11.0-preview + 0.11.1-preview https://github.com/microsoft/kiota/releases diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs index a18d2ccf38..8c6b96124d 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs @@ -620,7 +620,7 @@ public string? ReleasesUrl public string ReleasesUrl { get; set; } #endif /// The score property - public long? Score + public double? Score { get; set; } @@ -898,7 +898,7 @@ public IDictionary> GetFieldDeserializers() {"pulls_url", n => { PullsUrl = n.GetStringValue(); } }, {"pushed_at", n => { PushedAt = n.GetDateTimeOffsetValue(); } }, {"releases_url", n => { ReleasesUrl = n.GetStringValue(); } }, - {"score", n => { Score = n.GetLongValue(); } }, + {"score", n => { Score = n.GetDoubleValue(); } }, {"size", n => { Size = n.GetIntValue(); } }, {"ssh_url", n => { SshUrl = n.GetStringValue(); } }, {"stargazers_count", n => { StargazersCount = n.GetIntValue(); } }, @@ -996,7 +996,7 @@ public void Serialize(ISerializationWriter writer) writer.WriteStringValue("pulls_url", PullsUrl); writer.WriteDateTimeOffsetValue("pushed_at", PushedAt); writer.WriteStringValue("releases_url", ReleasesUrl); - writer.WriteLongValue("score", Score); + writer.WriteDoubleValue("score", Score); writer.WriteIntValue("size", Size); writer.WriteStringValue("ssh_url", SshUrl); writer.WriteIntValue("stargazers_count", StargazersCount); diff --git a/src/kiota/kiota.csproj b/src/kiota/kiota.csproj index a1b891b564..58563255a8 100644 --- a/src/kiota/kiota.csproj +++ b/src/kiota/kiota.csproj @@ -14,7 +14,7 @@ Microsoft.OpenApi.Kiota Microsoft.OpenApi.Kiota ./nupkg - 0.11.0-preview + 0.11.1-preview https://github.com/microsoft/kiota/releases