Skip to content

Commit 5592b93

Browse files
Avatar, Tilia, Emoji updates & fixes (#469)
* Avatar and Tilia updates and fixes Addresses #60 and #125 * Update UnableToCreateAvatarNowError.yaml * Add animated emoji upload properties * Update files.yaml
1 parent d66f8be commit 5592b93

10 files changed

Lines changed: 53 additions & 1 deletion

File tree

openapi/components/paths/avatars.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ paths:
122122
responses:
123123
'200':
124124
$ref: ../responses/avatars/AvatarResponse.yaml
125+
'400':
126+
$ref: ../responses/avatars/UnableToCreateAvatarNowError.yaml
125127
'401':
126128
$ref: ../responses/FeaturedSetNotAdminError.yaml
127129
tags:

openapi/components/paths/files.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,13 @@ paths:
317317
description: The binary blob of the png file.
318318
tag:
319319
type: string
320-
description: Needs to be either icon, gallery, sticker or emoji
320+
description: Needs to be either icon, gallery, sticker, emoji, or emojianimated
321+
frames:
322+
type: integer
323+
description: Required for emojianimated. Total number of frames to be animated (2-64)
324+
framesOverTime:
325+
type: integer
326+
description: Required for emojianimated. Animation frames per second (1-64)
321327
animationStyle:
322328
type: string
323329
example: bats

openapi/components/requests/CreateAvatarRequest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ type: object
33
properties:
44
assetUrl:
55
type: string
6+
assetVersion:
7+
type: string
8+
platform:
9+
$ref: ../schemas/Platform.yaml
10+
created_at:
11+
$ref: ../schemas/LocalDateTime.yaml
12+
updated_at:
13+
$ref: ../schemas/LocalDateTime.yaml
614
id:
715
$ref: ../schemas/AvatarID.yaml
816
name:
@@ -19,6 +27,9 @@ properties:
1927
imageUrl:
2028
type: string
2129
minLength: 1
30+
thumbnailImageUrl:
31+
type: string
32+
minLength: 1
2233
releaseStatus:
2334
$ref: ../schemas/ReleaseStatus.yaml
2435
version:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
description: Error response due to missing permissions.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: ../../schemas/Error.yaml
6+
examples:
7+
Unable To Create Avatar Now Example:
8+
value:
9+
error:
10+
message: "You can't create an avatar right now"
11+
status_code: 400

openapi/components/schemas/Avatar.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ properties:
3333
type: string
3434
releaseStatus:
3535
$ref: ./ReleaseStatus.yaml
36+
searchable:
37+
type: boolean
38+
default: false
3639
styles:
3740
type: object
3841
properties:

openapi/components/schemas/LimitedWorld.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ properties:
6666
type: string
6767
releaseStatus:
6868
$ref: ./ReleaseStatus.yaml
69+
storeId:
70+
$ref: ./StoreID.yaml
6971
tags:
7072
description: ' '
7173
items:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title: LocalDateTime
2+
type: string
3+
description: 'A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`)'
4+
example: '12/12/2021 1:23:43 AM'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
example: esto_713b247d-2b5d-41a0-bba3-50db28dc1498
2+
title: StoreID
3+
type: string

openapi/components/schemas/TiliaStatus.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ title: TiliaStatus
44
properties:
55
economyOnline:
66
type: boolean
7+
economyState:
8+
type: integer
9+
plannedOfflineWindowStart:
10+
type: string
11+
format: date-time
12+
plannedOfflineWindowEnd:
13+
type: string
14+
format: date-time
715
required:
816
- economyOnline

openapi/components/schemas/World.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ properties:
9292
type: string
9393
releaseStatus:
9494
$ref: ./ReleaseStatus.yaml
95+
storeId:
96+
$ref: ./StoreID.yaml
9597
tags:
9698
description: ' '
9799
type: array

0 commit comments

Comments
 (0)