Skip to content

Commit

Permalink
Merge branch 'main' into shem/remove_stringify_primitive_types
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe authored Oct 16, 2024
2 parents 64aa774 + 0eadf55 commit 35b68a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- 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

### Added
Expand All @@ -26,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed genarating CSharp client displays clean hint regardless of whether --clean-output is already passed [#5576](https://github.com/microsoft/kiota/issues/5576)
-Fixed Issue with primitive values being stringified in python python. [#5417](https://github.com/microsoft/kiota/issues/5417)

- 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

Expand Down
1 change: 1 addition & 0 deletions src/Kiota.Builder/KiotaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@ openApiExtension is OpenApiPrimaryErrorMessageExtension primaryErrorMessageExten
("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",
Expand Down
2 changes: 2 additions & 0 deletions tests/Kiota.Builder.Tests/KiotaBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4491,6 +4491,8 @@ public void InheritedTypeWithInlineSchemaWorks()
[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")]
Expand Down

0 comments on commit 35b68a0

Please sign in to comment.