-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
If description has /n the Generator dont add /// to comment the line for QueryParameter classes #613
Comments
Also tried running it using |
I think ive found where the issue is: if (settings.GenerateXmlDocCodeComments && !string.IsNullOrWhiteSpace(operationParameter.Description))
{
propertiesCodeBuilder.Append(
$$"""
/// <summary>
/// {{operationParameter.Description}}
/// </summary>
""");
propertiesCodeBuilder.AppendLine();
}
|
@Fargekritt Thanks for taking the time to report and look into this. Sorry for the long response, I'm on vacation and didn't have access to a computer when you reported this I'll look into this in the coming days, once I get my daily rhythm back 😄 |
@Fargekritt If you're up for the task of fixing this yourself, then I'll make sure that your pull request gets merged in |
@christianhelle I will take a crack at it later this week |
@all-contributors please add @Fargekritt for bugs |
I've put up a pull request to add @Fargekritt! 🎉 |
Describe the bug
If the swagger file has a description with newline the generator dont add /// to comment out the line but it keeps the /n. this creates compile errors.
OpenAPI Specifications
The OpenAPI spec is huge, this is the only relevant section
The generated interface is also huge this is only the relevant section
Additional context
.refitter used to generate the interface
The C# that was used when generating the swagger.json
Using Version 1.5.2
Full Class with the issue
The text was updated successfully, but these errors were encountered: