Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate component name in spec #1517

Closed
3 tasks
adamchengtkc opened this issue Nov 28, 2023 · 1 comment
Closed
3 tasks

Duplicate component name in spec #1517

adamchengtkc opened this issue Nov 28, 2023 · 1 comment
Labels

Comments

@adamchengtkc
Copy link

Case:

  • 2 different Controller class (A and B)
  • Both A and B has a route and function named C
    When generating spec, component name C will appears twice

Sorting

  • I'm submitting a ...

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

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

Expected Behavior

tsoa should throw an error

Current Behavior

tsoa will sucessfully generate a spec with duplicated name in component

Possible Solution

Check for duplicated function name in all controller classes

Steps to Reproduce

Context (Environment)

Version of the library: 5.1.1
Version of NodeJS: 20

  • Confirm you were using yarn not npm: [X ]

Detailed Description

Breaking change?

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant