1
responses:
    '201':
      description: Success
      schema:
        $ref: "#/definitions/Project_Name

Is there any way I can use a variable Project_Name with ref in the schema so that I can reuse this particular code snippet

Captain
  • 123
  • 4
  • 11
  • Do you mean reusing the entire response definition? I.e. everything under "'201'"? – Helen Jan 12 '22 at 11:25
  • It would be nice if I can reuse the entire response definition and sending the Project_Name variable to send the project names – Captain Jan 12 '22 at 11:43
  • OpenAPI supports [reusing response definitions](https://stackoverflow.com/a/35987551/113116). Does this answer your question? – Helen Jan 12 '22 at 13:16

0 Answers0