Skip to content

Fix some usages of HttpChain.RequestType after filling it with System.Void as default value#847

Merged
jeremydmiller merged 1 commit intoJasperFx:mainfrom
haefele:dah/fix_httpchain_request_type
Apr 29, 2024
Merged

Fix some usages of HttpChain.RequestType after filling it with System.Void as default value#847
jeremydmiller merged 1 commit intoJasperFx:mainfrom
haefele:dah/fix_httpchain_request_type

Conversation

@haefele
Copy link
Contributor

@haefele haefele commented Apr 27, 2024

I noticed that this change lead to some changes in the OpenAPI generation (see my change in HttpChain.ApiDescription).
It leads to endpoints without a request having a "made up" request with type System.Void, which in turn trips up Swashbuckle.

To me, it seems like that wasn't the intention with the RequestType ??= typeof(void) so I made these adjustments.

I also checked the other usages of the RequestType property and tried to adjust them if needed.

@jeremydmiller
Copy link
Member

@haefele Sigh, and thank you!

@jeremydmiller jeremydmiller merged commit ff8a5d8 into JasperFx:main Apr 29, 2024
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.

2 participants