-
Notifications
You must be signed in to change notification settings - Fork 219
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
Crash when generating code due to unknown mime type #3667
Comments
Hi @papegaaij, |
Unfortunately I'm very limited in my time at the moment, so I won't be able to work on this in the upcoming 2 months. Also, it's not entirely clear to me how this is all supposed to work after #3377 . As can be seen in the example, our application uses a vendor specific json format. We also support this same format in xml (not included in this example), which historically happens to be the default. So, it is essential that the client sets the accept header correctly. I would expect the client to always set a matching accept header when a response with content is defined. Matching in this case would be something the client understands, i.e. json. |
Since we received multiple bugs on the content type/accept headers, I decided to prioritize this today. |
Great to hear and thanks for the quick response. 3 of those tickets were mine. I decided to create separate tickets, because I had the feeling that even though they probably originated from the same change, the changes required were different. I'd rather see a ticket closed as duplicate than have some part being overlooked in one large ticket. I'll give your branch a try tomorrow. With a diff against the code generated by 1.7.0, it should be easy to spot any improvements or regressions. |
No worries, the feedback is always appreciated. |
With main, Kiota still crashes with the same error when I specify |
Thanks for testing the changes, I'll look into this specific case shortly. |
Can you git a try to #3677 please? I believe these latest changes address this too. |
Since 1.8.0 Kiota crashes during generation. This seems to be caused by the changes from #3377. The
openapi.json
below results inerror 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).The text was updated successfully, but these errors were encountered: