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

Open
ArcturusZhang opened this issue Nov 8, 2024 · 0 comments
Open

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

ArcturusZhang opened this issue Nov 8, 2024 · 0 comments

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.

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