diff --git a/CHANGELOG.md b/CHANGELOG.md index 7518d6342..d02c06c80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Fixed an issue where when generating Go code the deserializer for unions was using `CodeClass` as a filter and not `CodeInterface`. [#4844](https://github.com/microsoft/kiota/issues/4844) - +- Fixes mapping of `int16` format to the `integer` type rather than `double` when the type is `integer` or `number` [#5611](https://github.com/microsoft/kiota/issues/5611) ## [1.19.1] - 2024-10-11 @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed cyclic dependencies in generated Go code. [#2834](https://github.com/microsoft/kiota/issues/2834) - Fixed a bug where default output folder is created on plugin edit and generate commands. [#5510](https://github.com/microsoft/kiota/issues/5429) - Changed GeneratedCode attribute applied when generating CSharp to only include the major version of Kiota. [#5489](https://github.com/microsoft/kiota/issues/5489) -- Fixed genarating CSharp client displays clean hint regardless of whether --clean-output is already passed [#5576](https://github.com/microsoft/kiota/issues/5576) +- Fixed generating CSharp client displays clean hint regardless of whether --clean-output is already passed [#5576](https://github.com/microsoft/kiota/issues/5576) ## [1.19.0] - 2024-10-03 diff --git a/it/python/requirements-dev.txt b/it/python/requirements-dev.txt index ec87a6ddc..41f6ef86b 100644 --- a/it/python/requirements-dev.txt +++ b/it/python/requirements-dev.txt @@ -136,5 +136,5 @@ sniffio==1.3.1 ; python_version >= '3.7' uritemplate==4.1.1 ; python_version >= '3.6' -yarl==1.15.2 ; python_version >= '3.7' +yarl==1.15.3 ; python_version >= '3.7' diff --git a/src/Kiota.Builder/KiotaBuilder.cs b/src/Kiota.Builder/KiotaBuilder.cs index 8a1a4e69f..432550715 100644 --- a/src/Kiota.Builder/KiotaBuilder.cs +++ b/src/Kiota.Builder/KiotaBuilder.cs @@ -1154,6 +1154,7 @@ public partial class KiotaBuilder ("number" or "integer", "int8") => "sbyte", ("number" or "integer", "uint8") => "byte", ("number" or "integer", "int64") => "int64", + ("number", "int16") => "integer", ("number", "int32") => "integer", ("number", _) => "double", ("integer", _) => "integer", diff --git a/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs b/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs index 7d7382168..32123dcde 100644 --- a/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs +++ b/tests/Kiota.Builder.Tests/KiotaBuilderTests.cs @@ -4491,6 +4491,8 @@ components: [InlineData("integer", "int64", "int64")] [InlineData("number", "int8", "sbyte")] [InlineData("integer", "int8", "sbyte")] + [InlineData("number", "int16", "integer")] + [InlineData("integer", "int16", "integer")] [InlineData("number", "uint8", "byte")] [InlineData("integer", "uint8", "byte")] [InlineData("number", "", "double")]