If Kiota namespace flag (-o) has a version text in it, the output folder structure gets extraneous layering
- Dominant language
- C#
- Stars
- 3.8k
- Forks
- 333
- Avg merge
- 16h 29m
- Merged PRs (30d)
- 116
Description
### What are you generating using Kiota, clients or plugins?
API Client/SDK
### In what context or format are you using Kiota?
Source Build
### Client library/SDK language
Csharp
### Describe the bug
If you use -n flag that has the text 'v1' (or anything that looks like a version number in it, say:
-n "Project.Web.Features.Server.Clients.Test.V1" with an output parameter of -o "Project.Web/Features/Server/Clients/v1/TestApi -> this will create the client into a folder structure that looks like: "Project.Web/Features/Server/Clients/v1/TestApi/Project/Web/Features/Server/Clients/V1/TestApi
- I have verified that the output path can have v1 in it, no problem
- If namespace has v1 in it as is, the problem will repro but if you say .APIV1. then it will not reproduce
### Expected behavior
API would be generated into Project.Web/Features/Server/Clients/v1/TestApi instead
### How to reproduce
Add version number text "v1" into -o parameter of kiota client generation
### Open API description file
_No response_
### Known workarounds
Append API or other text to the namespace, to make it "Client.APIV1"
### Kiota Version
1.28.0+57130b1b1db3bc5c060498682f41e20c8ae089f2
### Configuration
- OS: Mac OS
Contributor guide
Assessment
This issue has not been assessed yet.