Skip to content

Breaking changes introduced in 1.15 #5610

Closed

Description

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Linux executable

Client library/SDK language

Java

Describe the bug

The code generated for the GitHub API started to break starting from the 1.15 release.
The error is detected, but going unnoticed on main: https://github.com/microsoft/kiota/actions/runs/11341313558/job/31539450974#step:14:197
The IT tests are not reporting the failure 😢

Expected behavior

The GitHub API should produce code that compiles in Java.

How to reproduce

This IT tests are one way, alternatively, I found the error with those steps:

git clone https://github.com/kiota-community/kiota-java-extra.git
cd kiota-java-extra
mvn clean install

everything goes smooth, but, when you update the default Kiota version here:

https://github.com/kiota-community/kiota-java-extra/blob/54f5cd7a3e0e3df9993fe9f109a797d45eebba0d/maven/plugin/src/main/java/io/kiota/maven/plugin/KiotaMojo.java#L72
to anything >= 1.15.0

and re-run a:

mvn clean install

it will fail.

Open API description file

https://raw.githubusercontent.com/github/rest-api-description/129d610a96aaa0eb10627a3a8078708997d4512b/descriptions/api.github.com/api.github.com.json

Kiota Version

1.15.0+

Latest Kiota version known to work for scenario above?(Not required)

1.14.0

Known Workarounds

No response

Configuration

No response

Debug output

Click to expand log ```
</details>


### Other information

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

Projects

  • Status

    Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions