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] literal type is not properly generated #5024

Closed
ArcturusZhang opened this issue Nov 8, 2024 · 1 comment · Fixed by #5140
Closed

[http-server-csharp] literal type is not properly generated #5024

ArcturusZhang opened this issue Nov 8, 2024 · 1 comment · Fixed by #5140
Assignees
Labels

Comments

@ArcturusZhang
Copy link
Member

ArcturusZhang commented Nov 8, 2024

In the contoso project, we have this interface generated:

public interface IWidgets
{
	Task<WidgetSuite> CreateOrUpdateWidgetAsync(string apiVersion, string widgetName, "application/merge-patch+json" contentType, WidgetSuite resource);
}

It misuses a string value as the type of contentType which is incorrect.
This might be indicating the generator is not properly handling the literal types.

@markcowl markcowl added the bug Something isn't working label Nov 11, 2024
@markcowl
Copy link
Contributor

  • yeah, this now requires doing real processing of ValueType

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

Successfully merging a pull request may close this issue.

2 participants