Skip to content

Kiota uses the namespace parameter to create folders #6686

Open
@DSmith-VERX

Description

@DSmith-VERX

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 am trying to use the generate command with the -o parameter to specify the desired folder. That works great. However, the -n parameter creates folders as well if you use "Project.Folder.Xyz" as your namespace. That creates, within the folder you've selected as output, "Project/Folder/Xyz". The first solution I tried was to just use "Xyz" as the namespace instead, but that creates a root-level namespace named "Xyz" instead.

Expected behavior

I expect to use -n "Project.Folder.Xyz" and not have it create any of those parts as folders.

How to reproduce

kiota generate -l csharp -o A/B/C -n A.B.C -c Client -d https://myjsonurl.json --exclude-backward-compatible --clean-output

Open API description file

No response

Kiota Version

1.27.0+278d4c17bfbc9fff8d8a1618bd95b43b1e3f7f4d

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

No response

Known Workarounds

Unknown

Configuration

No response

Debug output

Click to expand log ```
</details>


### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    generatorIssues or improvements relater to generation capabilities.status:waiting-for-author-feedbackIssue that we've responded but needs author feedback to closetype:questionAn issue that's a question

    Type

    No type

    Projects

    Status

    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions