You can reuse parameters, but not ‘models’ for parameters. Take a look at https://github.com/OAI/OpenAPI-Specification/blob/master/guidelines/REUSE.md.
From: <[email protected]> on behalf of TatyanaBol <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, 10 May 2017 at 2:06 To: Swagger <[email protected]> Subject: Question about reuse of path parameter pattern Hi Almost all our paths have path parameter {id} that should be valid GUID. We can add pattern: "regex" for this parameter. Path parameter doesn't allow schema property, so we can't use $ref: '#/definitions/IdPattern' How can we reuse the pattern? Please show an example if it's possible Thanks -- 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.
