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
Well, definitely throwing an exception if we get to this case is better than silently overriding it... but not much better. One thing we could do is generate unique names, calling one #/responses/ErrorResponseSchema1 and the other #/responses/ErrorResponseSchema2, but this seems like it could be pretty brittle unless we come up with an unambiguous/canonical name for the responses. (Do clients use the reference paths for anything?) Maybe we could detect this case and just not make references in this case, but just let the responses live underneath each operation?
The current implementation overrides the references when using a same schema for different responses cases. e.g:
Both will be at
#/responses/ErrorResponseSchema
The text was updated successfully, but these errors were encountered: