Skip to content
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

Update schema CurrentUser, added schema CurrentUserPresence #246

Merged
merged 2 commits into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ properties:
minimum: 0
example: 7
type: integer
acceptedPrivacyVersion:
minimum: 0
example: 0
type: integer
accountDeletionDate:
format: date
nullable: true
Expand Down Expand Up @@ -73,6 +77,9 @@ properties:
isFriend:
default: false
type: boolean
last_activity:
format: date-time
type: string
last_login:
format: date-time
type: string
Expand All @@ -97,6 +104,8 @@ properties:
items:
$ref: ./PastDisplayName.yaml
type: array
presence:
$ref: ./CurrentUserPresence.yaml
profilePicOverride:
type: string
state:
Expand Down Expand Up @@ -127,6 +136,9 @@ properties:
type: string
unsubscribe:
type: boolean
updated_at:
format: date-time
type: string
userIcon:
type: string
username:
Expand Down
41 changes: 41 additions & 0 deletions openapi/components/schemas/CurrentUserPresence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
title: CurrentUserPresence
type: object
properties:
avatarThumbnail:
type: string
nullable: true
displayName:
type: string
groups:
type: array
nullable: true
items:
$ref: ./GroupID.yaml
id:
$ref: ./UserID.yaml
instance:
type: string
nullable: true
instanceType:
$ref: ./InstanceType.yaml
nullable: true
isRejoining:
type: string
nullable: true
platform:
$ref: ./Platform.yaml
nullable: true
profilePicOverride:
type: string
nullable: true
status:
$ref: ./UserStatus.yaml
travelingToInstance:
type: string
nullable: true
travelingToWorld:
$ref: ./WorldID.yaml
nullable: true
world:
$ref: ./WorldID.yaml
nullable: true