Skip to content

Add Instance Creation properties and Content Settings properties #450

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions openapi/components/requests/CreateInstanceRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ properties:
inviteOnly:
type: boolean
default: false
ageGate:
type: boolean
default: false
instancePersistenceEnabled:
type: boolean
nullable: true
displayName:
type: string
nullable: true
contentSettings:
$ref: ../schemas/InstanceContentSettings.yaml
required:
- worldId
- type
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/schemas/FavoritedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ properties:
created_at:
format: date-time
type: string
defaultContentSettings:
$ref: ./InstanceContentSettings.yaml
favorites:
default: 0
example: 12024
Expand Down
3 changes: 3 additions & 0 deletions openapi/components/schemas/Instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ properties:
minLength: 1
deprecated: true
description: Always returns "unknown".
contentSettings:
$ref: ./InstanceContentSettings.yaml
displayName:
type: string
nullable: true
Expand Down Expand Up @@ -137,6 +139,7 @@ required:
- canRequestInvite
- capacity
- clientNumber
- contentSettings
- displayName
- full
- id
Expand Down
19 changes: 19 additions & 0 deletions openapi/components/schemas/InstanceContentSettings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description: Types of dynamic user content permitted in an instance
title: InstanceContentSettings
type: object
properties:
drones:
default: true
type: boolean
emoji:
default: true
type: boolean
pedestals:
default: true
type: boolean
prints:
default: true
type: boolean
stickers:
default: true
type: boolean
2 changes: 2 additions & 0 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ properties:
created_at:
format: date-time
type: string
defaultContentSettings:
$ref: ./InstanceContentSettings.yaml
favorites:
default: 0
example: 12024
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/schemas/World.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ properties:
created_at:
format: date-time
type: string
defaultContentSettings:
$ref: ./InstanceContentSettings.yaml
description:
minLength: 0
type: string
Expand Down