Skip to content

Commit 16af978

Browse files
committed
refactor: WorldID/InstanceID/LocationID
1 parent 4180893 commit 16af978

9 files changed

Lines changed: 18 additions & 22 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
description: Returns a list of LocationIDs.
2+
content:
3+
application/json:
4+
schema:
5+
type: array
6+
items:
7+
$ref: ../../schemas/LocationID.yaml

openapi/components/responses/instances/LocationListResponse.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

openapi/components/schemas/CurrentUserPresence.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ properties:
4242
type: string
4343
nullable: true
4444
travelingToWorld:
45-
$ref: ./WorldID.yaml
45+
$ref: ./LocationID.yaml
4646
nullable: true
4747
userIcon:
4848
type: string

openapi/components/schemas/GroupInstance.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ title: GroupInstance
22
type: object
33
properties:
44
instanceId:
5-
type: string
6-
minLength: 1
7-
example: 12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)
8-
location:
95
$ref: ./InstanceID.yaml
6+
location:
7+
$ref: ./LocationID.yaml
108
world:
119
$ref: ./World.yaml
1210
memberCount:

openapi/components/schemas/Instance.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ properties:
3838
id:
3939
$ref: ./InstanceID.yaml
4040
instanceId:
41-
type: string
42-
minLength: 1
43-
example: 12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)
41+
$ref: ./InstanceID.yaml
4442
instancePersistenceEnabled:
4543
type: string
4644
nullable: true
4745
location:
48-
$ref: ./InstanceID.yaml
46+
$ref: ./LocationID.yaml
4947
n_users:
5048
type: integer
5149
minimum: 0

openapi/components/schemas/Location.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
type: string
2+
example: 'wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)'
3+
title: LocationID
4+
description: LocationID is a combination of WorldID and InstanceID connected by a colon (WorldID:InstanceID). LocationID will be "offline" on User profiles if you are not friends with that user.

openapi/components/schemas/NotificationDetailInvite.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ properties:
22
inviteMessage:
33
type: string
44
worldId:
5-
$ref: ./WorldID.yaml
5+
$ref: ./LocationID.yaml
66
worldName:
77
type: string
88
required:

openapi/components/schemas/User.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ properties:
6060
last_platform:
6161
$ref: ./Platform.yaml
6262
location:
63-
$ref: ./WorldID.yaml
63+
$ref: ./LocationID.yaml
6464
note:
6565
type: string
6666
platform:

0 commit comments

Comments
 (0)