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

[http-server-csharp]: Minor improvements for sample generation #6022

Closed
3 of 4 tasks
markcowl opened this issue Feb 15, 2025 · 0 comments · Fixed by #6177
Closed
3 of 4 tasks

[http-server-csharp]: Minor improvements for sample generation #6022

markcowl opened this issue Feb 15, 2025 · 0 comments · Fixed by #6177
Assignees
Milestone

Comments

@markcowl
Copy link
Contributor

markcowl commented Feb 15, 2025

  • Emit a simple action for GET requests with a required or optional body: using standard request binding will fail at runtime for such cases. Also, emit a warning as this is generally a speec mistake
  • Initialize enum values in mocks
  • Add an HttpContextAccessor to standard DI container, and use in mock controller constructor, with documentation (used to change response status code, response properties, get http authentication info)
  • Fix nullability of object in optional properties (Union types)
@markcowl markcowl added emitter:service:csharp feature New feature or request labels Feb 18, 2025
@markcowl markcowl added this to the [2025] March milestone Feb 18, 2025
@markcowl markcowl self-assigned this Feb 18, 2025
@markcowl markcowl removed the 1_0_E2E label Feb 25, 2025
github-merge-queue bot pushed a commit that referenced this issue Feb 27, 2025
Fixes #6022

---------

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant