Skip to content
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
14 changes: 8 additions & 6 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ properties:
type: string
minLength: 1
capacity:
type: number
type: integer
imageUrl:
type: string
minLength: 1
Expand All @@ -32,7 +32,7 @@ properties:
items:
$ref: ./Tag.yaml
favorites:
type: number
type: integer
created_at:
type: string
format: date-time
Expand All @@ -41,7 +41,6 @@ properties:
format: date-time
publicationDate:
type: string
readOnly: true
labsPublicationDate:
type: string
minLength: 1
Expand All @@ -52,11 +51,14 @@ properties:
items:
$ref: ./LimitedUnityPackage.yaml
popularity:
type: number
type: integer
example: 8
default: 0
minimum: 0
heat:
type: number
type: integer
occupants:
type: number
type: integer
required:
- id
- name
Expand Down
28 changes: 9 additions & 19 deletions openapi/components/schemas/World.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,29 @@ properties:
authorName:
type: string
minLength: 1
readOnly: true
capacity:
type: number
type: integer
minimum: 0
example: 8
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
description:
type: string
minLength: 0
favorites:
type: number
type: integer
minimum: 0
default: 0
example: 12024
readOnly: true
featured:
type: boolean
default: false
heat:
type: number
type: integer
minimum: 0
example: 5
default: 0
readOnly: true
id:
$ref: ./WorldID.yaml
imageUrl:
Expand All @@ -63,11 +58,10 @@ properties:
namespace:
type: string
occupants:
type: number
type: integer
minimum: 0
example: 47
default: 0
readOnly: true
organization:
type: string
minLength: 1
Expand All @@ -76,25 +70,22 @@ properties:
pluginUrlObject:
type: object
popularity:
type: number
type: integer
example: 8
default: 0
minimum: 0
readOnly: true
previewYoutubeId:
type: string
privateOccupants:
type: number
type: integer
default: 0
minimum: 0
example: 1
readOnly: true
publicOccupants:
type: number
type: integer
example: 46
default: 0
minimum: 0
readOnly: true
publicationDate:
type: string
format: date-time
Expand All @@ -120,16 +111,15 @@ properties:
type: string
format: date-time
version:
type: number
type: integer
minimum: 0
example: 68
default: 0
visits:
type: number
type: integer
minimum: 0
example: 9988675
default: 0
readOnly: true
required:
- assetUrl
- assetUrlObject
Expand Down