Hi Leandro – the spec doesn’t support referencing individual operations.
From: <[email protected]> on behalf of Leandro Aguilar <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, 1 March 2017 at 12:26 To: Swagger <[email protected]> Subject: how to ref another path endpoint Hi, I am using swagger in yaml format in a java project. I can't find a way to reference an endpoint from another endpoint, for example: /objects/{id}/versions/{version}: get: .... head: $ref: '#paths/objects/{id}/versions/{version}/get' ---> does not work. Swagger tell me always to add "responses" property Thanks for help. -- 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. -- 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.
