That’s where composition comes in (which works slightly differently depending on which version of the spec you use).
From: <[email protected]> on behalf of Dharmendra Dubey <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, November 7, 2017 at 21:08 To: Swagger <[email protected]> Subject: Different View of same model Hi All, Is there any way to have different view of same model? I have a scenario where I have a model created and is being used for two different APIs but one API needs all the properties of the model but other one needs only few. Is there any way to handle this case in swagger? -- 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.
