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] extra blank lines are generated in the result #5004

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

Comments

@ArcturusZhang
Copy link
Member

For instance in this generated code:

    [ApiController]
    public abstract partial class SayHiControllerBase : ControllerBase
    {

        internal abstract ISayHi SayHiImpl { get; }

        ///<summary>
        /// say hello
        ///</summary>
        [HttpPost]
        [Route("/sayHi/hello")]
        [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(HelloContent))]
        public virtual async Task<IActionResult> Hello(HelloContent body)
        {
            var result = await SayHiImpl.HelloAsync(body);
            return Ok(result);
        }


        [HttpPost]
        [Route("/sayHi/world")]
        [ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(WorldResult))]
        public virtual async Task<IActionResult> World()
        {
            var result = await SayHiImpl.WorldAsync();
            return Ok(result);
        }

    }
}

There are quite a few extra blank lines which produces warnings in the project.

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