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

Wrong types for projectId #352

Open
uncaught opened this issue Jan 14, 2025 · 1 comment
Open

Wrong types for projectId #352

uncaught opened this issue Jan 14, 2025 · 1 comment
Labels
bug Indicates a reported issue or malfunction that needs fixing. good first issue Highlights beginner-friendly tasks, ideal for those looking to contribute for the first time.
Milestone

Comments

@uncaught
Copy link

Trying out projects.getHierarchy({projectId: '') I've noticed that you expect a number here, but the project.id type is a string and it seems that's correct based on the project result:
image

There seem to be several places where projectId is considered a number (in your v3 implementation):

image

Maybe they are all wrong here.

And for some reason only two places for projectIdOrKey think this can be a number:

image

@MrRefactoring
Copy link
Owner

Hi @uncaught! Yes, there is such an issue caused by code auto-generation from Swagger provided by Atlassian. It is necessary to make changes to the final code to support the number type for all projectIdOrKey

@MrRefactoring MrRefactoring added the bug Indicates a reported issue or malfunction that needs fixing. label Jan 14, 2025
@MrRefactoring MrRefactoring added this to the v4.1.0 milestone Jan 14, 2025
@MrRefactoring MrRefactoring added the good first issue Highlights beginner-friendly tasks, ideal for those looking to contribute for the first time. label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a reported issue or malfunction that needs fixing. good first issue Highlights beginner-friendly tasks, ideal for those looking to contribute for the first time.
Projects
None yet
Development

No branches or pull requests

2 participants