Description
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
Csharp
Describe the bug
I'm trying to generate a client for the TrackUnit group API, but it throws an error: "error generating the client: Value cannot be null or empty: referenceId (Parameter 'referenceId')"
After some trial/error I found the cause to be the presence of "tags": [ "" ]
If I remove those it seems to work.
Expected behavior
Ignore empty tags instead of generating an error.
How to reproduce
You can run the following:
kiota generate -l CSharp -c BaseTrackUnitGroupsClient -n CCTrackUnitClient -d https://developers.trackunit.com/openapi/62bc9436ca283d0083119e2b -o . --ebc
Open API description file
https://developers.trackunit.com/openapi/62bc9436ca283d0083119e2b
Kiota Version
1.24.1+68eefbe046b9a9e4ee8b2029070a1cf097e5a984
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
Download the openapi and remove the "tags": [ "" ] lines.
Configuration
- OS: Windows 11, using Visual Studio 2022.
- I do not think it is relevant to this configuration
Debug output
Click to expand log
Debug: KiotaBuilder kiota version 1.24.1 Debug: KiotaBuilder cache file C:\Users\stefan\AppData\Local\Temp\kiota\cache\generation\D5041F0FF32584C3284CEC6532AD86B93F3A8B85095C3677915F36655E2FB22C\62bc9436ca283d0083119e2b is up to date and clearCache is False, using it Information: KiotaBuilder loaded description from remote source Debug: KiotaBuilder step 1 - reading the stream - took 00:00:00.0113209 Critical: KiotaBuilder error generating the client: Value cannot be null or empty: referenceId (Parameter 'referenceId')Other information
No response