Closed eastcoastcoder closed 2 years ago
With this change it would be possible for the body decorator to make reference to already existing models within the definitions key of the swagger-json. This prevents duplication of generated schemas.
Usage example: @body({ $ref: '#/definitions/Order' })
@body({ $ref: '#/definitions/Order' })
You can see this method used in the Swagger Petstore example: https://petstore.swagger.io/v2/swagger.json
With this change it would be possible for the body decorator to make reference to already existing models within the definitions key of the swagger-json. This prevents duplication of generated schemas.
Usage example:
@body({ $ref: '#/definitions/Order' })
You can see this method used in the Swagger Petstore example: https://petstore.swagger.io/v2/swagger.json