alok_dida
alok_dida

Reputation: 1723

Ardalis.Result package - not able to return custom error object

Swagger is generating below documentation.

enter image description here

In my code, I am returning ValidationError object and it's not returning that.

enter image description here

Here is the ValidationError class.

enter image description here

Is this anything wrong with my mapping or do I have to write down my own TranslateResultToActionResult attribute to achieve it?

Upvotes: 0

Views: 394

Answers (0)

Related Questions