ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#โ€ข10mo agoโ€ข
22 replies
HeavenVR

Microsoft.AspNetCore.OpenApi throws confusing exception (transitioning away from swagger)

When trying to load in the OpenApi schema it throws this exception:

Specific codebase:
https://github.com/OpenShock/API/tree/feature/replace-swagger

Configuration:
https://github.com/OpenShock/API/blob/feature/replace-swagger/Common/OpenShockServiceHelper.cs#L122-L141

Middleware:
https://github.com/OpenShock/API/blob/feature/replace-swagger/Common/OpenShockMiddlewareHelper.cs#L76-L77

Any idea where I can begin to troubleshoot?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

โœ… Microsoft.AspNetCore.OpenApi possible bug with valuetypes
C#CC# / help
10mo ago
AspNetCore Null Exception
C#CC# / help
2y ago
Swagger, openAPI specification
C#CC# / help
3y ago
โ” OpenAPI add TAG swagger
C#CC# / help
3y ago