Skip to content
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
3 changes: 2 additions & 1 deletion openapi/components/requests/CreateAvatarRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ properties:
type: string
minLength: 1
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand All @@ -32,4 +33,4 @@ properties:
type: string
required:
- name
- imageUrl
- imageUrl
1 change: 1 addition & 0 deletions openapi/components/requests/CreateFileRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ properties:
type: string
minLength: 1
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand Down
1 change: 1 addition & 0 deletions openapi/components/requests/CreateWorldRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ properties:
releaseStatus:
$ref: ../schemas/ReleaseStatus.yaml
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand Down
1 change: 1 addition & 0 deletions openapi/components/requests/UpdateAvatarRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ properties:
type: string
minLength: 1
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand Down
1 change: 1 addition & 0 deletions openapi/components/requests/UpdateUserRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ properties:
acceptedTOSVersion:
type: number
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand Down
1 change: 1 addition & 0 deletions openapi/components/requests/UpdateWorldRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ properties:
releaseStatus:
$ref: ../schemas/ReleaseStatus.yaml
tags:
description: ' '
type: array
items:
$ref: ../schemas/Tag.yaml
Expand Down
3 changes: 0 additions & 3 deletions openapi/components/schemas/Avatar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ properties:
$ref: ./UserID.yaml
authorName:
minLength: 1
readOnly: true
type: string
created_at:
format: date-time
readOnly: true
type: string
description:
minLength: 0
Expand Down Expand Up @@ -65,7 +63,6 @@ properties:
default: 0
example: 68
minimum: 0
readOnly: true
type: integer
required:
- authorId
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/DeploymentGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ enum:
- cherry
title: DeploymentGroup
default: blue
readOnly: true
1 change: 0 additions & 1 deletion openapi/components/schemas/FileData.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ properties:
- simple
minLength: 1
default: queued
readOnly: true
fileName:
minLength: 1
type: string
Expand Down
3 changes: 2 additions & 1 deletion openapi/components/schemas/InstanceID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type: string
example: 'wrld_ba913a96-fac4-4048-a062-9aa5db092812:12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)'
pattern: '(wrld|wld)_[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}:(\d+)(~region\(([\w]+)\))?(~([\w]+)\(usr_([\w-]+)\)((\~canRequestInvite)?)(~region\(([\w].+)\))?~nonce\((.+)\))?'
pattern: '(offline|(wrld|wld)_[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}:(\d+)(~region\(([\w]+)\))?(~([\w]+)\(usr_([\w-]+)\)((\~canRequestInvite)?)(~region\(([\w].+)\))?~nonce\((.+)\))?)'
title: InstanceID
minLength: 41
description: InstanceID be "offline" on User profiles if you are not friends with that user.
12 changes: 9 additions & 3 deletions openapi/components/schemas/User.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ type: object
properties:
allowAvatarCopying:
type: boolean
default: true
bio:
type: string
maxLength: 512
minLength: 0
bioLinks:
type: array
items:
Expand All @@ -16,25 +19,27 @@ properties:
date_joined:
format: date
type: string
readOnly: true
developerType:
$ref: ./DeveloperType.yaml
displayName:
type: string
description: 'A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period.'
friendKey:
type: string
id:
$ref: ./UserID.yaml
instanceId:
type: string
$ref: ./InstanceID.yaml
isFriend:
type: boolean
description: 'Either their `friendKey`, or empty string if you are not friends. Unknown usage.'
last_login:
type: string
description: Either a date-time or empty string.
last_platform:
$ref: ./Platform.yaml
location:
type: string
$ref: ./WorldID.yaml
profilePicOverride:
type: string
state:
Expand All @@ -52,6 +57,7 @@ properties:
type: string
username:
type: string
description: 'A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.'
worldId:
$ref: ./WorldID.yaml
required:
Expand Down
1 change: 1 addition & 0 deletions openapi/components/schemas/UserID.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
example: usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469
title: UserID
type: string
description: 'A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.'
1 change: 1 addition & 0 deletions openapi/components/schemas/WorldID.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ example: wrld_ba913a96-fac4-4048-a062-9aa5db092812
pattern: '(^$|offline|(wrld|wld)_[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12})'
title: WorldID
type: string
description: WorldID be "offline" on User profiles if you are not friends with that user.