You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know you can achieve that in OpenAPI pattern with oneOf
But the last one always overrides the previous, I wanted to let the consumer know that if he/she gets a 400 it could be a validation error or something else.
The text was updated successfully, but these errors were encountered:
Is it possible to specify two possible types on the Response?
Here is what I need:
[SwaggerResponse((int)HttpStatusCode.BadRequest, type: typeof(ValidationProblemDetails))]
[SwaggerResponse((int)HttpStatusCode.BadRequest, type: typeof(ProblemDetails))]
I know you can achieve that in OpenAPI pattern with oneOf
But the last one always overrides the previous, I wanted to let the consumer know that if he/she gets a 400 it could be a validation error or something else.
The text was updated successfully, but these errors were encountered: