-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping values are not allowed in this context #6024
Comments
Hi @dbheale Thank you for your patience. I did try to reproduce the issue with the description you provided and wasn't able to. I've been using kiota version 1.22.3 as well. Would you mind double checking what you provided is effectively what's causing the issue on your end please? |
@baywet thanks for getting back to me. Does yours create an API Client? My output just looks like this: Here's the json I ran it against just now: |
Thank you for the additional information. Yes, I do get a generated client in both cases. |
Is there anything obvious I'm missing? I've been using kiota for years, this is the first time I've had this issue. |
Sorry for wasting your time, it was an auth issue. |
no worries! thanks for the follow up! |
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Windows executable
Client library/SDK language
Csharp
Describe the bug
I am getting the following error:
Error: KiotaBuilder OpenAPI error: #line=35 - (Lin: 35, Col: 26395, Chr: 27722) - (Lin: 35, Col: 26395, Chr: 27722): Mapping values are not allowed in this context.
My command:
kiota generate -d "https://localhost:44321/openapi/v1.json" -l csharp -n "FtSeriateConfiguration.Client.Kiota.ConfigurationService" --ebc -c ConfigurationApiClient --co -o "./Kiota
And I have a brand new API with only one endpoint. Here's my API doc:
Expected behavior
I would expect a
ConfigurationApiClient.cs
file to be created within theFtSeriateConfiguration.Client.Kiota.ConfigurationService
namespace under the relativeKiota
folder.How to reproduce
Use the provided JSON and run it through Kiota.
v1.json
Open API description file
No response
Kiota Version
1.22.3+a544276a5ee9d4a7b67cc0fbd5ce2804c172fa14
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: