tsoa icon indicating copy to clipboard operation
tsoa copied to clipboard

Support @Extension on classes and interfaces

Open nathanwinder opened this issue 3 years ago • 1 comments

I'd like the ability to apply extension data to classes and interfaces

Sorting

  • I'm submitting a ...

    • [ ] bug report
    • [x] feature request
    • [ ] support request
  • I confirm that I

    • [ x] used the search to make sure that a similar issue hasn't already been submit

Expected Behavior

components
  schemas
    MyClass
      x-my-extension: value
    MyInterface
      x-my-extension: value
@Extension("x-my-extension", "value")
export class MyClass { }

/** @extension { "x-my-extension", "value" } */
export interface MyInterface { }

Current Behavior

It is not possible to attach extension data to a schema.

Context (Environment)

Version of the library: 3.14.1 Version of NodeJS:

Breaking change?

No

nathanwinder avatar Jan 28 '22 04:01 nathanwinder

Hello there nathanwinder 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

github-actions[bot] avatar Jan 28 '22 04:01 github-actions[bot]