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

feat: add can_edit field to SharedLink #831

Merged
merged 4 commits into from
Jun 10, 2022
Merged

Conversation

mwwoda
Copy link
Contributor

@mwwoda mwwoda commented Jun 9, 2022

I decided to model the SDK like open-api (can-edit for File, Folder and WebLink). An exception is thrown when you try to set can_edit true for Folder or WebLink. The API throws an exception when you do this, so we can throw it earlier.

Another possible solution would be to either separate SharedLink for File, Folder, and WebLink (a breaking change), or deprecate the existing methods in favor of new ones with new DTOs.

@mwwoda mwwoda marked this pull request as ready for review June 9, 2022 13:17
Copy link
Contributor

@arjankowski arjankowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mwwoda mwwoda merged commit e0d4197 into main Jun 10, 2022
@mwwoda mwwoda deleted the sdk-2032-shared-link-updates branch June 10, 2022 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants