You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
14
14
### Changed
15
15
16
+
- C#, Java, Go, PHP, Dart, TypeScript, Python and Ruby client: default value initialization in model classes for DateTime/Date/Time/UUID properties did not compile [#7404](https://github.com/microsoft/kiota/issues/7404)
17
+
- All languages: default value initialization in model classes for numeric/boolean properties was missing [#7404](https://github.com/microsoft/kiota/issues/7404)
16
18
- Fixed a potential NullReferenceException in union model discriminator factory methods when a discriminator mapping key is null or empty across C#, Dart, Go, Java, PHP, and Python writers. [#7641](https://github.com/microsoft/kiota/pull/7641)
17
19
- Fixed `kiota download` returning exit code 0 (success) when no results are found or multiple ambiguous matches exist. [#7643](https://github.com/microsoft/kiota/pull/7643)
18
20
- Fixed incorrect command hints and telemetry in `kiota plugin generate` handler referencing "client" instead of "plugin". [#7642](https://github.com/microsoft/kiota/pull/7642)
When calling "exec-cmd.ps1" for a specific language, the scripts checks whether this sub folder exists in
36
+
the directory corresponding to the language.
37
+
If it exists, it executes the tests found in this directory.
38
+
39
+
The handling depends on the language:
40
+
41
+
* C#: place the tests in "it\csharp\mysample". Use the test class "basic\KiotaMockServerTests.cs" as a test file template.
42
+
The subdir should also contain a project file and maybe "Usings.cs" if your test class relies on global usings.
43
+
But you can use the default files: if "exec-cmd.ps1" finds no csproj file in the subdir, it copies "basic\basic.csproj" to
44
+
your test subdir and removes it afterwards. The same is done for "Usings.cs"
45
+
* Dart: place the tests in "it\dart\mysample\test". Use the test class "it\dart\basic\test\api_client_test.dart" as a test file template.
46
+
No additional files are required.
47
+
* Go: place the tests in "it\go\mysample". Use the test class "it\go\basic\client_test.go" as a test file template.
48
+
The subdir should also contain "go.mod" and "go.sum".
49
+
But you can use the default files: if "exec-cmd.ps1" does not find them in the subdir, it copies them from the "basic" dir to
50
+
your test subdir and removes them afterwards.
51
+
* Java: place the tests in "it\java\mysample\src\test\java". Use the test class "it\java\basic\src\test\java\BasicAPITest.java" as a test file template.
52
+
The subdir should also contain "pom.xml".
53
+
But you can use the default file: if "exec-cmd.ps1" does not find it in the subdir, it copies it from the "basic" dir to
54
+
your test subdir and removes it afterwards.
55
+
* PHP: place the tests in "it\php\mysample\tests". Use the test class "it\php\basic\tests\SampleTest.php" as a test file template.
56
+
The subdir should also contain "composer.json" and "phpstan.neon".
57
+
But you can use the default files: if "exec-cmd.ps1" does not find them in the subdir, it copies them from the "basic" dir to
58
+
your test subdir and removes them afterwards.
59
+
* Python: place the tests in "it\python\mysample". Use the test class "it\python\basic\test_sample.py" as a test file template.
60
+
No additional files are required.
61
+
* Ruby: place the tests in "it\ruby\spec\mysample" (difference to other tests!). Use the test class "it\ruby\spec\defaultvalues\integration_test_defaultvalues.rb" as a test file template.
62
+
No additional files are required.
63
+
* Typescript: not supported.
64
+
65
+
If you create e.g. a custom "csproj" file for your test (might be necessary if you need additional dependencies), add this file
66
+
to the Dependabot config so that dependencies are updated.
"Rationale": "https://github.com/microsoft/kiota/pull/7414#issuecomment-4033965839 and https://github.com/github/rest-api-description/issues/6100 (default value for enum is not quoted)"
56
+
},
57
+
{
58
+
"Pattern": "/repos/{owner}/{repo}/releases#POST",
59
+
"Rationale": "https://github.com/microsoft/kiota/pull/7414#issuecomment-4033965839 (default value for enum is not quoted, fixed in recent file as of 03/2026 but not updated to APIGurus)"
0 commit comments