-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added worlds endpoint * Made the generator happy * Fixed LimitedWorld parameter issues * Made the linter happy I hope * Occupants is nullable in the websocket api * Modified openapi/components/schemas/LimitedWorld.yaml * Yeah that didn't generate Revert "Modified openapi/components/schemas/LimitedWorld.yaml" This reverts commit 5dd09d6. * Removed format: date from publicationDate since it can be 'none' * Switched default ReleaseStatus to public Example of a variable should be what makes somewhat sense in a auto-generated response. `hidden` means it has been deleted, so something most people will never see as a response. Co-authored-by: Aaron DeLory <[email protected]> Co-authored-by: Foorack / Max Faxälv <[email protected]>
- Loading branch information
1 parent
be73a84
commit 19bfd51
Showing
3 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
title: LimitedWorld | ||
type: object | ||
properties: | ||
authorId: | ||
$ref: ./UserID.yaml | ||
authorName: | ||
type: string | ||
capacity: | ||
type: number | ||
created_at: | ||
type: string | ||
format: date | ||
favorites: | ||
type: number | ||
heat: | ||
type: number | ||
id: | ||
$ref: ./WorldID.yaml | ||
imageUrl: | ||
type: string | ||
labsPublicationDate: | ||
type: string | ||
# This is a date string unless there is no date, then it's 'none' | ||
# oneOf: date, string did not generate | ||
# format: date | ||
name: | ||
type: string | ||
occupants: | ||
type: number | ||
organization: | ||
type: string | ||
popularity: | ||
type: number | ||
publicationDate: | ||
type: string | ||
# This is a date string unless there is no date, then it's 'none' | ||
# oneOf: date, string did not generate | ||
# format: date | ||
releaseStatus: | ||
$ref: ./ReleaseStatus.yaml | ||
tags: | ||
type: array | ||
items: | ||
$ref: ./Tag.yaml | ||
thumbnailImageUrl: | ||
type: string | ||
# TODO | ||
unityPackages: | ||
type: array | ||
items: | ||
type: object | ||
updated_at: | ||
type: string | ||
format: date | ||
required: | ||
- authorId | ||
- authorName | ||
- capacity | ||
- createdAt | ||
- favorites | ||
- heat | ||
- id | ||
- imageUrl | ||
- name | ||
- organization | ||
- popularity | ||
- publicationDate | ||
- releaseStatus | ||
- tags | ||
- thumbnailImageUrl | ||
- unityPackages | ||
- updatedAt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: ReleaseStatus | ||
type: string | ||
default: public | ||
enum: | ||
- public | ||
- private | ||
- hidden | ||
example: public |