fix: allow a maximum of one invite at a time#8019
fix: allow a maximum of one invite at a time#8019rhafer merged 1 commit intoowncloud:masterfrom fschade:graph-beta-fix-invite
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
|
|
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: