Skip to content

Commit 98a2d68

Browse files
authored
remove duplicate type name 'Platform' and 'Tag' (#483)
Try and remove duplicate type names for 'Platform' and 'Tag' based on my findings using the full file avaliable here: https://vrchat.community/openapi.yaml Not fully sure how this file gets assembled so have tried to do it as close to what I saw used other places in the same files #482
1 parent 240f48c commit 98a2d68

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

openapi/components/parameters.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ platform:
274274
in: query
275275
required: false
276276
schema:
277-
type: string
277+
$ref: ./schemas/Platform.yaml
278278
description: The platform the asset supports.
279279
noplatform:
280280
name: noplatform
@@ -295,28 +295,28 @@ tag:
295295
in: query
296296
required: false
297297
schema:
298-
type: string
298+
$ref: ./schemas/Tag.yaml
299299
description: Tags to include (comma-separated). Any of the tags needs to be present.
300300
include:
301301
name: include
302302
in: query
303303
required: false
304304
schema:
305-
type: string
305+
$ref: ./schemas/Tag.yaml
306306
description: Tags to include (comma-separated). Any of the tags needs to be present.
307307
require:
308308
name: require
309309
in: query
310310
required: false
311311
schema:
312-
type: string
312+
$ref: ./schemas/Tag.yaml
313313
description: Tags to include (comma-separated). All of the tags needs to be present.
314314
notag:
315315
name: notag
316316
in: query
317317
required: false
318318
schema:
319-
type: string
319+
$ref: ./schemas/Tag.yaml
320320
description: Tags to exclude (comma-separated).
321321
search:
322322
name: search

openapi/components/schemas/CurrentUser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ properties:
165165
isMobile:
166166
type: boolean
167167
platform:
168-
type: string
168+
$ref: ./Platform.yaml
169169
nullable: true
170170
recorded:
171171
type: string

openapi/components/schemas/CurrentUserPresence.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ properties:
3030
type: string
3131
nullable: true
3232
platform:
33-
type: string
33+
$ref: ./Platform.yaml
3434
description: either a Platform or an empty string
3535
nullable: true
3636
profilePicOverride:

openapi/components/schemas/DynamicContentRow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ properties:
99
type: string
1010
platform:
1111
minLength: 1
12-
type: string
12+
$ref: ./Platform.yaml
1313
description: 'Usually "ThisPlatformSupported", but can also be other values such as "all" or platform specific identifiers.'
1414
sortHeading:
1515
minLength: 1
@@ -23,7 +23,7 @@ properties:
2323
tag:
2424
description: Tag to filter content for this row.
2525
minLength: 1
26-
type: string
26+
$ref: ./Tag.yaml
2727
type:
2828
type: string
2929
example: avatar

openapi/components/schemas/LimitedUserInstance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ properties:
4848
nullable: true
4949
format: date-time
5050
platform:
51-
type: string
51+
$ref: ./Platform.yaml
5252
profilePicOverride:
5353
type: string
5454
profilePicOverrideThumbnail:

openapi/components/schemas/NotificationDetailRequestInvite.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
properties:
22
platform:
33
description: 'TODO: Does this still exist?'
4-
type: string
4+
$ref: ./Platform.yaml
55
requestMessage:
66
description: Used when using InviteMessage Slot.
77
type: string

0 commit comments

Comments
 (0)