We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following endpoint:
[HttpGet("packing-dashboard")] [HttpGet("packing-dashboard/{partner?}")] public async Task<IActionResult> GetDashboard([FromRoute] string? partner = default, CancellationToken cancellationToken = default)
Makes the partner value required in the UI:
Ditto for the document:
The partner variable should be optional.
Its required.
Paste the sample code above in a controller.
No response
Latest (6.8.0)
net8.0
The text was updated successfully, but these errors were encountered:
Latest
To confirm, is this with 6.8.0?
Sorry, something went wrong.
Latest To confirm, is this with 6.8.0?
Did not expect the 2hrs ago release - i will recheck if this issue persists on that version.
Unfortunately the issue remains with 6.8.0.
This seems to be the expected behaviour:
Swashbuckle.AspNetCore/src/Swashbuckle.AspNetCore.SwaggerGen/SwaggerGenerator/ApiParameterDescriptionExtensions.cs
Lines 34 to 39 in 9f4dacd
Last PR against this: #2183
No branches or pull requests
Describe the bug
The following endpoint:
Makes the partner value required in the UI:
Ditto for the document:
Expected behavior
The partner variable should be optional.
Actual behavior
Its required.
Steps to reproduce
Paste the sample code above in a controller.
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
Latest (6.8.0)
.NET Version
net8.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: