Skip to content
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

child classes should not redefine default exception properties #2190

Closed
baywet opened this issue Jan 25, 2023 · 0 comments · Fixed by #2256
Closed

child classes should not redefine default exception properties #2190

baywet opened this issue Jan 25, 2023 · 0 comments · Fixed by #2256
Assignees
Labels
generator Issues or improvements relater to generation capabilities. type:bug A broken experience WIP
Milestone

Comments

@baywet
Copy link
Member

baywet commented Jan 25, 2023

kiota generate -l CSharp -o $PWD/GitHub -d https://api.apis.guru/v2/specs/github.com/api.github.com/1.1.4/openapi.json -i **/pulls/** -e **/comments/** -e **/comments -c GitHubClient -n "$projectName.GitHub" -i **/pulls

gives you

C:\sources\gitlocal\GitHubTodoDemoMR\GitHub\Models\BasicError.cs(25,24): warning CS0114: 'BasicError.Message' hides inherited member 'Exception.Message'. To make the current member overri
de that implementation, add the override keyword. Otherwise add the new keyword. [C:\sources\gitlocal\GitHubTodoDemoMR\GitHubTodoDemoMR.csproj]

because the exception class already defines that field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities. type:bug A broken experience WIP
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant