-
Notifications
You must be signed in to change notification settings - Fork 187
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
fix: allow a maximum of one invite at a time #8019
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Wouldn't your list of 4xx cases be valuable in some dev docs description? |
The PR is still in draft mode, isn't it?! |
I think this also needs a change in the libregraph repo, the example there shows multi recipient invite: https://github.com/owncloud/libre-graph-api/blob/main/api/openapi-spec/v1.0.yaml#L514-L519 |
thanks for the hint, done: owncloud/libre-graph-api#155 |
thanks for the hint too, one of the benefits of oapi is the self documenting character, e.g. https://swagger.io/resources/articles/documenting-apis-with-swagger/ or do is miss some point? |
…s and http status code handling
f2f3b72
to
4c42b1e
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
I tested it, looks good
@grgprarup could you please adapt your tests for new code expectation |
Description
as described in #7962 multi invites could get problematic, specially the error handling.
Therefore we've decided to restrict invitations to a maximum of one!
It contains validation (allow only user and group types, id), error handling and tests for that.
disabled user -> TODOnot part of this pr, will be handled globally via revaRelated Issue
Motivation and Context
explicit error handling
How Has This Been Tested?
Types of changes
Checklist: