Closed domharrington closed 10 months ago
Its definitely a one line fix! Feel free to through up a PR, I can have it merged today.
Thanks for the fast reply! I also just noticed that I think PersonalAccessTokenSchema.token
should be required instead of optional?
Afaict the token
is always going to be returned from this API?
Do you want this in the same PR or a different one?
Same one is fine!
Description
The type for
forceRandomPassword
inCreateUserOptions
is incorrect, it should be a boolean:https://github.com/jdalrymple/gitbeaker/blob/fd19ac3b3aaebdea71adee99661565d3836a7ac2/packages/core/src/resources/Users.ts#L154
API Docs: https://docs.gitlab.com/ee/api/users.html#user-creation
Steps to reproduce
Try to pass a boolean to forceRandomPassword:
Expected behaviour
Should work
Actual behaviour
Type error
Possible fixes
Update type to boolean
Checklist
Happy to put in a PR if you want me to, but hopefully should be a one line fix!