Description
openedon Nov 6, 2023
Since 1.8.0 Kiota crashes during generation. This seems to be caused by the changes from #3377. The openapi.json
below results in error generating the client: One or more errors occurred. (Sequence contains no elements)
:
./kiota generate -d crash.json -l Go
crit: Kiota.Builder.KiotaBuilder[0]
error generating the client: One or more errors occurred. (Sequence contains no elements)
When specifying --structured-mime-types "application/vnd.topicus.keyhub+json;version=67"
generation succeeds, but with an incorrect mime type (see other ticket).
{
"openapi": "3.0.1",
"info": {
"title": "Topicus KeyHub OpenAPI definition",
"description": "Topicus KeyHub",
"termsOfService": "https://topicus-keyhub.com",
"version": "67"
},
"servers": [
{
"url": "https://keyhub.example.com/keyhub/rest/v1"
}
],
"paths": {
"/account": {
"post": {
"operationId": "create_account",
"requestBody": {
"content": {
"application/vnd.topicus.keyhub+json;version=67": {
"schema": {
"$ref": "#/components/schemas/authAccount"
}
}
}
},
"responses": {
"201": {
"description": "default response",
"content": {
"application/vnd.topicus.keyhub+json;version=67": {
"schema": {
"$ref": "#/components/schemas/authAccount"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"authAccount": {
"title": "authAccount",
"type": "object",
"properties": {
"uuid": {
"type": "string",
"readOnly": true
},
"username": {
"type": "string",
"readOnly": true
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
Done ✔️