-
Notifications
You must be signed in to change notification settings - Fork 45
Document interests and preferences, and tutorial completion #607
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
27 changes: 27 additions & 0 deletions
27
openapi/components/responses/authentication/GetInterestsAndPreferencesResponse.yaml
This file contains hidden or 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,27 @@ | ||
| description: OK | ||
| content: | ||
| application/json: | ||
| examples: | ||
| All Off: | ||
| value: {} | ||
| All On: | ||
| value: | ||
| Anime: true | ||
| Art: true | ||
| Avatars: true | ||
| BigGroup: true | ||
| Explore: true | ||
| Fantasy: true | ||
| Fashion: true | ||
| FindAvatars: true | ||
| Furries: true | ||
| Horror: true | ||
| LanguageLearning: true | ||
| MeetPeople: true | ||
| Music: true | ||
| Mystery: true | ||
| SciFi: true | ||
| SmallGroup: true | ||
| Surprise: true | ||
| schema: | ||
| $ref: ../../schemas/InterestsAndPreferences.yaml |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/authentication/UpdateInterestsAndPreferencesParseError.yaml
This file contains hidden or 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,11 @@ | ||
| description: The body is not a JSON object. | ||
| content: | ||
| application/json: | ||
| examples: | ||
| JSON Failed To Parse: | ||
| value: | ||
| error: | ||
| message: JSON failed to parse. | ||
| status_code: 400 | ||
| schema: | ||
| $ref: ../../schemas/Error.yaml |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/authentication/UpdateInterestsAndPreferencesResponse.yaml
This file contains hidden or 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,11 @@ | ||
| description: OK | ||
| content: | ||
| application/json: | ||
| examples: | ||
| Update Interests And Preferences Success: | ||
| value: | ||
| success: | ||
| message: Interests and preferences updated! | ||
| status_code: 200 | ||
| schema: | ||
| $ref: ../../schemas/Success.yaml |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/users/ClearTutorialsForbiddenError.yaml
This file contains hidden or 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,11 @@ | ||
| description: A user can clear only their own tutorials. | ||
| content: | ||
| application/json: | ||
| examples: | ||
| Other User: | ||
| value: | ||
| error: | ||
| message: '"You do not have permission to clear tutorials completions for others."' | ||
| status_code: 403 | ||
| schema: | ||
| $ref: ../../schemas/Error.yaml |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/users/CompleteTutorialForbiddenError.yaml
This file contains hidden or 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,11 @@ | ||
| description: A user can complete only their own tutorials. | ||
| content: | ||
| application/json: | ||
| examples: | ||
| Other User: | ||
| value: | ||
| error: | ||
| message: '"You do not have permission to complete tutorials for others."' | ||
| status_code: 403 | ||
| schema: | ||
| $ref: ../../schemas/Error.yaml |
This file contains hidden or 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,38 @@ | ||
| title: InterestsAndPreferences | ||
| type: object | ||
| description: Interests and preferences the current user has turned on. A key is present only while its value is `true`. | ||
|
|
||
| properties: | ||
| Anime: | ||
| type: boolean | ||
| Art: | ||
| type: boolean | ||
| Avatars: | ||
| type: boolean | ||
| BigGroup: | ||
| type: boolean | ||
| Explore: | ||
| type: boolean | ||
| Fantasy: | ||
| type: boolean | ||
| Fashion: | ||
| type: boolean | ||
| FindAvatars: | ||
| type: boolean | ||
| Furries: | ||
| type: boolean | ||
| Horror: | ||
| type: boolean | ||
| LanguageLearning: | ||
| type: boolean | ||
| MeetPeople: | ||
| type: boolean | ||
| Music: | ||
| type: boolean | ||
| Mystery: | ||
| type: boolean | ||
| SciFi: | ||
| type: boolean | ||
| SmallGroup: | ||
| type: boolean | ||
| Surprise: | ||
| type: boolean | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| title: TutorialKey | ||
| type: string | ||
| description: "The ID of a tutorial, in the format `{platform}:{tutorial}:{version}`. `undefined:undefined:v1` is used as a null-ish or sentinel value." | ||
| description: "The ID of a tutorial. A platform tutorial is `{platform}:{store}:v1`, taken from the `X-Platform` and `X-Store` headers, with `undefined` for a header the request left out. Other tutorials take a longer form, such as `platform-agnostic:custom:onboarding-tutorial-world:v1`." | ||
|
|
||
| default: undefined:undefined:v1 | ||
| example: standalonewindows:steam:v1 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.