cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger set Errors links C# and remove Problem Details

delucaezequiel
New Contributor

Swagger set Errors links C# and remove Problem Details

Hi:

 

I am trying to achieve the following configuration on my OpenApi.

1) Remove ProblemDetails from Schema

2) Add Error Links

I am using Visual Studio 2019 and C# on a WebAPI Project. It looks like the xml tags doesn't work on the same way that yaml ones, unluckily on Visual Studio yaml configuration can not be set as far as I know.

Do you know if there is a way to do what I am attempting? Do you know where can I find the related documentation? All the documents that I found only shows yaml examples that do not apply to Visual Studio

1 REPLY 1
pdelco
Occasional Visitor

Re: Swagger set Errors links C# and remove Problem Details

I think this article has the information you are looking for.

 

Create web APIs with ASP.NET Core | Microsoft Docs

New Here?
Join us and watch the welcome video:
Top Kudoed Authors