From ae1be8cd4843ebb590d2cbe7edc5474d4a054678 Mon Sep 17 00:00:00 2001 From: jellejurre Date: Wed, 14 May 2025 21:52:46 +0200 Subject: [PATCH 1/3] Add avatar marketplace info --- openapi/components/schemas/Avatar.yaml | 34 ++++++++++++++++++-- openapi/components/schemas/FileAnalysis.yaml | 2 ++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/openapi/components/schemas/Avatar.yaml b/openapi/components/schemas/Avatar.yaml index 49cd5306..954f3c98 100644 --- a/openapi/components/schemas/Avatar.yaml +++ b/openapi/components/schemas/Avatar.yaml @@ -1,12 +1,14 @@ description: '' properties: + acknowledgements: + type: string assetUrl: - description: 'Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`.' + description: 'Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`.' minLength: 1 type: string assetUrlObject: description: |- - Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. + Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. type: object authorId: @@ -23,16 +25,43 @@ properties: featured: default: false type: boolean + highestPrice: + type: number id: $ref: ./AvatarID.yaml imageUrl: minLength: 1 type: string + lock: + type: boolean + lowestPrice: + type: number name: minLength: 1 type: string + productId: + type: string + publishedListings: + type: array + items: + type: object + properties: + description: + type: string + displayName: + type: string + imageId: + type: string + listingId: + type: string + listingType: + type: string + priceTokens: + type: number releaseStatus: $ref: ./ReleaseStatus.yaml + searchable: + type: boolean styles: type: object properties: @@ -87,6 +116,7 @@ required: - imageUrl - name - releaseStatus + - searchable - styles - tags - thumbnailImageUrl diff --git a/openapi/components/schemas/FileAnalysis.yaml b/openapi/components/schemas/FileAnalysis.yaml index f46f4e95..de417ce4 100644 --- a/openapi/components/schemas/FileAnalysis.yaml +++ b/openapi/components/schemas/FileAnalysis.yaml @@ -6,6 +6,8 @@ properties: created_at: type: string format: date-time + encryptionKey: + type: string fileSize: type: integer performanceRating: From ebdf582e8f017a7e052961630c0078e800d3ee11 Mon Sep 17 00:00:00 2001 From: jellejurre Date: Mon, 19 May 2025 00:18:46 +0200 Subject: [PATCH 2/3] Remove searchable (already implemented) --- openapi/components/schemas/Avatar.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/openapi/components/schemas/Avatar.yaml b/openapi/components/schemas/Avatar.yaml index 954f3c98..b81c701e 100644 --- a/openapi/components/schemas/Avatar.yaml +++ b/openapi/components/schemas/Avatar.yaml @@ -60,8 +60,6 @@ properties: type: number releaseStatus: $ref: ./ReleaseStatus.yaml - searchable: - type: boolean styles: type: object properties: @@ -116,7 +114,6 @@ required: - imageUrl - name - releaseStatus - - searchable - styles - tags - thumbnailImageUrl From 92265b7abbc6c3e4d8a9f42e15d7958e2c9607ed Mon Sep 17 00:00:00 2001 From: jellejurre Date: Mon, 19 May 2025 10:42:49 +0200 Subject: [PATCH 3/3] Change tokens to number --- openapi/components/schemas/Avatar.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi/components/schemas/Avatar.yaml b/openapi/components/schemas/Avatar.yaml index b81c701e..34a478d8 100644 --- a/openapi/components/schemas/Avatar.yaml +++ b/openapi/components/schemas/Avatar.yaml @@ -26,7 +26,7 @@ properties: default: false type: boolean highestPrice: - type: number + type: integer id: $ref: ./AvatarID.yaml imageUrl: @@ -35,7 +35,7 @@ properties: lock: type: boolean lowestPrice: - type: number + type: integer name: minLength: 1 type: string @@ -57,7 +57,7 @@ properties: listingType: type: string priceTokens: - type: number + type: integer releaseStatus: $ref: ./ReleaseStatus.yaml styles: