swagger icon indicating copy to clipboard operation
swagger copied to clipboard

fix: Retain $ref when setting name property

Open clintonb opened this issue 1 year ago • 0 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [x] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: #2951

What is the new behavior?

Setting the name property no longer results in a $ref being wrapped in allOf.

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

Other information

clintonb avatar May 16 '24 17:05 clintonb