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

Improvements for c-sharp service generation #5603

Open
7 tasks
markcowl opened this issue Jan 14, 2025 · 0 comments
Open
7 tasks

Improvements for c-sharp service generation #5603

markcowl opened this issue Jan 14, 2025 · 0 comments

Comments

@markcowl
Copy link
Contributor

This encompasses some simple improvements to the c-sharp emitter

  • Add exception types for spec error messages
  • Add error configuration that translates specific errors into responses with appropriate http status codes
  • Improve naming of anonymous types using context
    • Inline parameters using operation name
    • Inline properties using model + proprerty name
    • Inline responses using operation +'Response'
  • Keep a central cache of emitted type names to prevent low probability generated name clashes

est: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant