mirror of https://github.com/zulip/zulip.git
openapi: Reorder group-setting-value oneOf clause.
This commit is contained in:
parent
b285e631e9
commit
6aa3a55796
|
@ -20596,6 +20596,9 @@ components:
|
|||
[mentions]: /help/mention-a-user-or-group
|
||||
GroupSettingValue:
|
||||
oneOf:
|
||||
- type: integer
|
||||
description: |
|
||||
The ID of the [user group](/help/user-groups) with this permission.
|
||||
- type: object
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
@ -20613,9 +20616,6 @@ components:
|
|||
type: integer
|
||||
description: |
|
||||
An object with these fields:
|
||||
- type: integer
|
||||
description: |
|
||||
The ID of the [user group](/help/user-groups) with this permission.
|
||||
Invite:
|
||||
type: object
|
||||
description: |
|
||||
|
|
|
@ -58,7 +58,7 @@ def add_user_group(
|
|||
name: str,
|
||||
members: Json[Sequence[int]],
|
||||
description: str,
|
||||
can_mention_group: Optional[Json[Union[AnonymousSettingGroupDict, int]]] = None,
|
||||
can_mention_group: Optional[Json[Union[int, AnonymousSettingGroupDict]]] = None,
|
||||
) -> HttpResponse:
|
||||
user_profiles = user_ids_to_users(members, user_profile.realm)
|
||||
name = check_user_group_name(name)
|
||||
|
|
Loading…
Reference in New Issue