-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
CsharpPull requests that update .net codePull requests that update .net codestatus:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience
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
Kiota will throw an error if a referenced fragment isn't a full openapi document
fail: Kiota.Builder.KiotaBuilder[0]
OpenAPI error: (null) - [File: fragment.json] Version node not found.
Expected behavior
fragments do not need to be full openapi documents and can be just a fragment of it
How to reproduce
dotnet kiota generate -l CSharp -d <given openapi>
Open API description file
fragment.json
{
"get": {
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}Kiota Version
1.29.0
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```</details>
### Other information
_No response_
Metadata
Metadata
Assignees
Labels
CsharpPull requests that update .net codePull requests that update .net codestatus:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience
Type
Projects
Status
Needs Triage 🔍
{ "openapi": "3.0.1", "info": { "title": "Test API", "version": "v1" }, "paths": { "/foo": { "$ref": "fragment.json#/get" } } }