The spec supports referencing only single parameters, not groups of parameters.
From: 'Philipp' via Swagger <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, 12 June 2017 at 5:36 To: Swagger <[email protected]> Subject: How to define a set of standard parameters for each path item Hi, I have a set of parameters, that should be used by nearly every path item as standard. I only want to define these parameters once and use them, when I need them, by writing one reference to the set of my parameters. How to write it down in Swagger? I tried a lot of tinks, but nothing was accepted by the editor. I want to use the parameter defintion like this: /services/{serviceId}/start: parameters: - name: serviceId in: path required: true type: integer post: parameters: - $ref: '#/parameters/sessionInformation' // one ref to the set of standard parameters - ... responses: 200: ... Some examples for describing my set of standard parameters: parameters: sessionInformation: name: sessionInformation in: query required: true type: object // object is not allwed ... paths: /services/{serviceId}/start: ... parameters: sessionInformation: - name: sessionInformation in: body required: true schema: $ref: '#/definitions/Session' // is not exactly one from <#/definitions/bodyParameter>,<#/definitions/nonBodyParameter> paths: /services/{serviceId}/start: ... It would be great, if someone could help me. Thanks a lot, Philipp -- 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.
