-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
shared_with_groups returns different types for Groups and Projects #3579
Comments
Sounds like a typo, but ill double check it and follow up |
Looking at the fix it changed the string array return type for the ProjectSchema, but within the ExpandedGroupSchema it still returns a ProjectSchema array, is this intended then? |
It isnt, just overlooked. |
🚀 Issue was released in |
🚀 Issue was released in |
Description
I am trying to implement a function in React (typescript) that compares the properties of shared_with_groups on a Group or Project with ones that a user wants to add to said resource. But I am running into the fact that on Groups, calling on the shared_with_groups attribute, gitbeaker returns this as a ProjectSchema array, whereas on Projects it returns this as a string array. Is this an intended feature? I don't see how the following output makes sense in a ProjectSchema:
Can someone tell me whether this is intended or not, and if it is, why exactly?
I call upon these properties like this:
Checklist
The text was updated successfully, but these errors were encountered: