Should (4xx-5xx) exceptions from Kiota follow dotnet naming convention #6586
thoekstraorama
started this conversation in
General
Replies: 1 comment
-
|
Hi @thoekstraorama This is a great suggestion, but yes, it'd be a source breaking change for existing clients. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using problem details in our aspnetcore project and are generating clients for our API's with Kiota. Recently I got some feedback of a colleague. He told me that he wasn't sure whether the
ProblemDetailsthrown by the kiota generated client was an exception or not. This was because of the lack of the 'Exception'-suffix.So my question is. Shouldn't exceptions thrown by Kiota follow the dotnet naming conventions? This would not only help by showing properly that it's an exception thrown by the client, it will help by making the differentiation between 'ProblemDetails' from aspnetcore and 'ProblemDetailsException' thrown by a kiota generated client.
I understand that this will break a lot of generated applications. So if this is something that is interesting it should probably be a opt-in.
Example for clarity:
Beta Was this translation helpful? Give feedback.
All reactions