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

Ensure args with [NotBody] do not display within openapi. #550

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

alistair
Copy link
Contributor

While this seems like a simple change the implementation of this functionality is highly dependent on both aspnetcore ApiExplorer and swashbuckle functionality.

My understanding is that the dependency relationship between these is the following

EndpointBuilder -> Endpoint -> ApiExplorer -> Swashbuckle.

Specifically the functionality which this relies on is implemented here https://github.com/dotnet/aspnetcore/blob/b0b9f45538383bdf036bd35a84c6552d37bd6010/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs#L279C120-L287

Closes #528

While this seems like a simple change the implementation of this
functionality is highly dependent on both aspnetcore ApiExplorer and
swashbuckle functionality.

My understanding is that the dependency relationship between these is the following

EndpointBuilder -> Endpoint -> ApiExplorer -> Swashbuckle.

Specifically the functionality which this relies on is implemented here https://github.com/dotnet/aspnetcore/blob/b0b9f45538383bdf036bd35a84c6552d37bd6010/src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs#L279C120-L287

Closes JasperFx#528
@jeremydmiller
Copy link
Member

@alistair I was gonna tell you in Discord today that I had a couple conversations with wolverine users where they're having to opt out of low ceremony approaches just because of Swagger or NSwag. That makes your work here very timely all the sudden and more important than I guess I realized. I'll try to be getting this in very soon.

Thank you!

@alistair
Copy link
Contributor Author

@jeremydmiller if you have more details on what challenges they have then I can have a look into it.

@jeremydmiller jeremydmiller merged commit 1b33534 into JasperFx:main Sep 22, 2023
1 check passed
@jeremydmiller jeremydmiller added this to the 1.7.0 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NotBody] Not respected by Swashbuckle When using a Parameter for LoadAsync result
2 participants