Skip to content

Commit

Permalink
Add missing GroupMember fields from group Search and add GroupSearchS…
Browse files Browse the repository at this point in the history
…ort (#276)
  • Loading branch information
Miner28 authored Feb 2, 2024
1 parent 325fff1 commit ccbdd73
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
7 changes: 7 additions & 0 deletions openapi/components/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ sort:
schema:
$ref: ./schemas/SortOption.yaml
description: The sort order of the results.
groupMemberSort:
name: sort
in: query
required: false
schema:
$ref: ./schemas/GroupSearchSort.yaml
description: The sort order of Group Member results
order:
name: order
in: query
Expand Down
1 change: 1 addition & 0 deletions openapi/components/paths/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ paths:
parameters:
- $ref: ../parameters.yaml#/number
- $ref: ../parameters.yaml#/offset
- $ref: ../parameters.yaml#/groupMemberSort
responses:
'200':
$ref: ../responses/groups/GroupMemberListResponse.yaml
Expand Down
11 changes: 10 additions & 1 deletion openapi/components/schemas/GroupMember.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ properties:
type: array
items:
$ref: ./GroupRoleID.yaml
mRoleIds:
type: array
items:
$ref: ./GroupRoleID.yaml
joinedAt:
type: string
format: date-time
Expand All @@ -44,4 +48,9 @@ properties:
managerNotes:
description: "Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user."
type: string
nullable: true
nullable: true
lastPostReadAt:
type: string
format: date-time
hasJoinedFromPurchase:
type: boolean
10 changes: 9 additions & 1 deletion openapi/components/schemas/GroupMemberLimitedUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ properties:
thumbnailUrl:
type: string
iconUrl:
type: string
type: string
profilePicOverride:
type: string
currentAvatarThumbnailImageUrl:
type: string
currentAvatarTags:
type: array
items:
$ref: ./Tag.yaml
6 changes: 6 additions & 0 deletions openapi/components/schemas/GroupSearchSort.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: GroupSearchSort
type: string
enum:
- joinedAt:asc
- joinedAt:desc
example: joinedAt:asc

0 comments on commit ccbdd73

Please sign in to comment.