Hello, I'm specifying an API with swagger and I have an operation that return plain text when it's OK, and json when there is an error. I can't find how to express that with swagger. Should I say that the path produces "application/json" and "text/plain" ? Doesn't it mean that the user could expect a json response even if it's OK ?
On one hand, it is logical that the method return some plain text, on the other, it looks logical to return json on any error to be consistent with the rest of the API. So i don't know what to do. Thanks for any help ! Axel -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
