Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all regex patterns and Update API Fields #264

Merged
merged 8 commits into from
Dec 27, 2023
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
5 changes: 0 additions & 5 deletions openapi/components/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ fileId:
schema:
type: string
example: file_00000000-0000-0000-0000-000000000000
pattern: 'file_[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}'
description: Must be a valid file ID.
groupId:
name: groupId
Expand All @@ -76,7 +75,6 @@ groupId:
schema:
type: string
example: grp_00000000-0000-0000-0000-000000000000
pattern: 'grp_[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}'
description: Must be a valid group ID.
groupRoleId:
name: groupRoleId
Expand All @@ -85,7 +83,6 @@ groupRoleId:
schema:
type: string
example: grol_00000000-0000-0000-0000-000000000000
pattern: 'grol_[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}'
description: Must be a valid group role ID.
groupGalleryId:
name: groupGalleryId
Expand All @@ -94,7 +91,6 @@ groupGalleryId:
schema:
type: string
example: ggal_00000000-0000-0000-0000-000000000000
pattern: 'ggal_[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}'
description: Must be a valid group gallery ID.
groupGalleryImageId:
name: groupGalleryImageId
Expand All @@ -103,7 +99,6 @@ groupGalleryImageId:
schema:
type: string
example: ggim_00000000-0000-0000-0000-000000000000
pattern: 'ggim_[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}'
description: Must be a valid group gallery image ID.
versionId:
name: versionId
Expand Down
2 changes: 0 additions & 2 deletions openapi/components/requests/FinishFileDataUploadRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ properties:
deprecated: true
description: 'Always a zero in string form, despite how many parts uploaded.'
maxLength: 1
pattern: '0'
maxParts:
type: string
minLength: 1
Expand All @@ -26,7 +25,6 @@ properties:
default: '0'
example: '0'
maxLength: 1
pattern: '0'
required:
- nextPartNumber
- maxParts
1 change: 0 additions & 1 deletion openapi/components/schemas/AvatarID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: avtr_912d66a4-4714-43b8-8407-7de2cafbf55b
pattern: 'avtr_[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: AvatarID
type: string
18 changes: 18 additions & 0 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ properties:
$ref: ./CurrentAvatarImageUrl.yaml
currentAvatarThumbnailImageUrl:
$ref: ./CurrentAvatarThumbnailImageUrl.yaml
currentAvatarTags:
type: array
items:
$ref: ./Tag.yaml
date_joined:
format: date
type: string
Expand All @@ -64,6 +68,14 @@ properties:
type: array
hasBirthday:
type: boolean
hideContentFilterSettings:
type: boolean
userLanguage:
nullable: true
type: string
userLanguageCode:
nullable: true
type: string
hasEmail:
type: boolean
hasLoggedInFromClient:
Expand Down Expand Up @@ -91,6 +103,12 @@ properties:
type: string
oculusId:
type: string
googleId:
type: string
picoId:
type: string
viveId:
type: string
offlineFriends:
items:
$ref: ./UserID.yaml
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/FavoriteGroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: fvgrp_8a02a44b-dc3a-4a9a-bc77-77fa37996fc7
pattern: 'fvgrp_[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: FavoriteGroupID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/FavoriteID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: fvrt_9568d189-8776-44a5-a8c8-defc981e44de
pattern: 'fvrt_[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: FavoriteID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/FileID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: file_ce35d830-e20a-4df0-a6d4-5aaef4508044
pattern: 'file_[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: FileID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupAnnouncementID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gpos_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'gpos_[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: GroupAnnouncementID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupAuditLogID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gaud_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'gaud_[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: GroupAuditLogID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupDiscriminator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: '1234'
pattern: '^[0-9]{4}$'
title: GroupDiscriminator
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupGalleryID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ggal_a03a4b55-4ca6-4490-9519-40ba6351a233
pattern: 'ggal_[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: GroupGalleryID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupGalleryImageID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ggim_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'ggim_[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: GroupGalleryImageID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: grp_71a7ff59-112c-4e78-a990-c7cc650776e5
pattern: 'grp_[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: GroupID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupMemberID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37
pattern: 'gmem_[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: GroupMemberID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupRoleID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: grol_459d3911-f672-44bc-b84d-e54ffe7960fe
pattern: 'grol_[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: GroupRoleID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/GroupShortCode.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: ABC123
pattern: '^[A-Z0-9]{3,6}$'
title: GroupShortCode
type: string
3 changes: 1 addition & 2 deletions openapi/components/schemas/InstanceID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
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: '(private|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\((.+)\))?)'
example: '12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)'
title: InstanceID
description: InstanceID can be "offline" on User profiles if you are not friends with that user and "private" if you are friends and user is in private instance.
1 change: 0 additions & 1 deletion openapi/components/schemas/InviteMessageID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: invm_24a1c14d-5e24-48e5-90e3-c3f712420ffa
pattern: '(default|invm_[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: InviteMessageID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/License.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ properties:
type: string
description: 'Either a AvatarID, LicenseGroupID, PermissionID or ProductID. This depends on the `forType` field.'
minLength: 1
pattern: '(avtr|lgrp|prms|prod)_[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}'
forType:
$ref: ./LicenseType.yaml
forName:
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/LicenseGroupID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: lgrp_608513da-b213-4e15-80af-bd88c27f0979
pattern: 'lgrp_[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: LicenseGroupID
type: string
9 changes: 7 additions & 2 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ properties:
type: string
capacity:
example: 8
maximum: 40
minimum: 0
type: integer
recommendedCapacity:
example: 16
type: integer
created_at:
format: date-time
Expand Down Expand Up @@ -72,6 +73,10 @@ properties:
updated_at:
format: date-time
type: string
udonProducts:
type: array
items:
$ref: ./UdonProductId.yaml
required:
- id
- name
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/NotificationID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: not_00000000-0000-0000-0000-000000000000
pattern: '(not|frq)_[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: NotificationID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/PermissionID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: prms_804ba021-9f47-4e25-9847-1f42fdb2e6ff
pattern: 'prms_[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: PermissionID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/PlayerModerationID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: pmod_25551a8d-6f5d-430a-88d3-9c0ce08b5244
pattern: 'pmod_[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: PlayerModerationID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/ProductID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: prod_bfbc2315-247a-44d7-bfea-5237f8d56cb4
pattern: 'prod_[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: ProductID
type: string
1 change: 0 additions & 1 deletion openapi/components/schemas/TransactionID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: txn_e5c72948-e735-4880-8245-24b2a41198b0
pattern: 'txn_[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: TransactionID
type: string
4 changes: 4 additions & 0 deletions openapi/components/schemas/UdonProductId.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
example: prod_c1644b5b-3ca4-45b4-97c6-a2a0de70d469
title: UdonProductId
type: string
description: 'A unique ID of a Udon Product'
8 changes: 6 additions & 2 deletions openapi/components/schemas/UnityPackage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ example:
unitySortNumber: 20180414000
unityVersion: 2018.4.14f1
properties:
id:
$ref: ./UnityPackageID.yaml
assetUrl:
minLength: 1
type: string
Expand All @@ -22,8 +24,6 @@ properties:
created_at:
format: date-time
type: string
id:
$ref: ./UnityPackageID.yaml
platform:
$ref: ./Platform.yaml
pluginUrl:
Expand All @@ -39,6 +39,10 @@ properties:
example: 2018.4.12f1
minLength: 1
type: string
impostorUrl:
type: string
scanStatus:
type: string
required:
- id
- unityVersion
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/UnityPackageID.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
example: unp_52b12c39-4163-457d-a4a9-630e7aff1bff
pattern: '(unp)_[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: UnityPackageID
type: string
4 changes: 4 additions & 0 deletions openapi/components/schemas/World.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ properties:
example: 9988675
minimum: 0
type: integer
udonProducts:
type: array
items:
$ref: ./UdonProductId.yaml
required:
- authorId
- authorName
Expand Down
1 change: 0 additions & 1 deletion openapi/components/schemas/WorldID.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,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.