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
|
[mentions]: /help/mention-a-user-or-group
|
||||||
GroupSettingValue:
|
GroupSettingValue:
|
||||||
oneOf:
|
oneOf:
|
||||||
|
- type: integer
|
||||||
|
description: |
|
||||||
|
The ID of the [user group](/help/user-groups) with this permission.
|
||||||
- type: object
|
- type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
|
@ -20613,9 +20616,6 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
description: |
|
description: |
|
||||||
An object with these fields:
|
An object with these fields:
|
||||||
- type: integer
|
|
||||||
description: |
|
|
||||||
The ID of the [user group](/help/user-groups) with this permission.
|
|
||||||
Invite:
|
Invite:
|
||||||
type: object
|
type: object
|
||||||
description: |
|
description: |
|
||||||
|
|
|
@ -58,7 +58,7 @@ def add_user_group(
|
||||||
name: str,
|
name: str,
|
||||||
members: Json[Sequence[int]],
|
members: Json[Sequence[int]],
|
||||||
description: str,
|
description: str,
|
||||||
can_mention_group: Optional[Json[Union[AnonymousSettingGroupDict, int]]] = None,
|
can_mention_group: Optional[Json[Union[int, AnonymousSettingGroupDict]]] = None,
|
||||||
) -> HttpResponse:
|
) -> HttpResponse:
|
||||||
user_profiles = user_ids_to_users(members, user_profile.realm)
|
user_profiles = user_ids_to_users(members, user_profile.realm)
|
||||||
name = check_user_group_name(name)
|
name = check_user_group_name(name)
|
||||||
|
|
Loading…
Reference in New Issue